Skip to content

Commit 248c17c

Browse files
committed
Edited error messages
1 parent 89bd457 commit 248c17c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

intune/libexec/agent_ms_intune

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python3
22
# -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*-
33

4-
# Copyright (C) 2024 Christopher Pommer <cp.software@outlook.de>
4+
# Copyright (C) 2025 Christopher Pommer <cp.software@outlook.de>
55

66
# This program is free software; you can redistribute it and/or
77
# modify it under the terms of the GNU General Public License
@@ -144,7 +144,7 @@ def get_access_token(
144144
except requests.exceptions.Timeout as err:
145145
handle_error(
146146
err,
147-
f"Timeout while getting access token ({int(timeout)}s).",
147+
"Timeout while getting access token.",
148148
11,
149149
)
150150
except requests.exceptions.RequestException as err:
@@ -192,7 +192,7 @@ def get_intune_app_licenses(
192192
except requests.exceptions.Timeout as err:
193193
handle_error(
194194
err,
195-
f"Timeout while getting Intune applications ({int(timeout)}s).",
195+
"Timeout while getting Intune applications.",
196196
12,
197197
)
198198
except requests.exceptions.RequestException as err:
@@ -256,7 +256,7 @@ def get_intune_apple_ade_tokens(
256256
except requests.exceptions.Timeout as err:
257257
handle_error(
258258
err,
259-
f"Timeout while getting Apple ADE tokens ({int(timeout)}s).",
259+
"Timeout while getting Apple ADE tokens.",
260260
13,
261261
)
262262
except requests.exceptions.RequestException as err:
@@ -302,7 +302,7 @@ def get_intune_apple_mdm_push_cert(
302302
except requests.exceptions.Timeout as err:
303303
handle_error(
304304
err,
305-
f"Timeout while getting Apple push certificate ({int(timeout)}s).",
305+
"Timeout while getting Apple push certificate.",
306306
14,
307307
)
308308
except requests.exceptions.RequestException as err:
@@ -357,7 +357,7 @@ def get_intune_apple_vpp_tokens(
357357
except requests.exceptions.Timeout as err:
358358
handle_error(
359359
err,
360-
f"Timeout while getting Apple VPP tokens ({int(timeout)}s).",
360+
"Timeout while getting Apple VPP tokens.",
361361
15,
362362
)
363363
except requests.exceptions.RequestException as err:
@@ -410,7 +410,7 @@ def get_intune_cert_connectors(
410410
except requests.exceptions.Timeout as err:
411411
handle_error(
412412
err,
413-
f"Timeout while getting certificate connectors ({int(timeout)}s).",
413+
"Timeout while getting certificate connectors.",
414414
16,
415415
)
416416
except requests.exceptions.RequestException as err:

0 commit comments

Comments
 (0)