|
1 | 1 | #!/usr/bin/env python3 |
2 | 2 | # -*- coding: utf-8; py-indent-offset: 4; max-line-length: 100 -*- |
3 | 3 |
|
4 | | -# Copyright (C) 2024 Christopher Pommer <cp.software@outlook.de> |
| 4 | +# Copyright (C) 2025 Christopher Pommer <cp.software@outlook.de> |
5 | 5 |
|
6 | 6 | # This program is free software; you can redistribute it and/or |
7 | 7 | # modify it under the terms of the GNU General Public License |
@@ -144,7 +144,7 @@ def get_access_token( |
144 | 144 | except requests.exceptions.Timeout as err: |
145 | 145 | handle_error( |
146 | 146 | err, |
147 | | - f"Timeout while getting access token ({int(timeout)}s).", |
| 147 | + "Timeout while getting access token.", |
148 | 148 | 11, |
149 | 149 | ) |
150 | 150 | except requests.exceptions.RequestException as err: |
@@ -192,7 +192,7 @@ def get_intune_app_licenses( |
192 | 192 | except requests.exceptions.Timeout as err: |
193 | 193 | handle_error( |
194 | 194 | err, |
195 | | - f"Timeout while getting Intune applications ({int(timeout)}s).", |
| 195 | + "Timeout while getting Intune applications.", |
196 | 196 | 12, |
197 | 197 | ) |
198 | 198 | except requests.exceptions.RequestException as err: |
@@ -256,7 +256,7 @@ def get_intune_apple_ade_tokens( |
256 | 256 | except requests.exceptions.Timeout as err: |
257 | 257 | handle_error( |
258 | 258 | err, |
259 | | - f"Timeout while getting Apple ADE tokens ({int(timeout)}s).", |
| 259 | + "Timeout while getting Apple ADE tokens.", |
260 | 260 | 13, |
261 | 261 | ) |
262 | 262 | except requests.exceptions.RequestException as err: |
@@ -302,7 +302,7 @@ def get_intune_apple_mdm_push_cert( |
302 | 302 | except requests.exceptions.Timeout as err: |
303 | 303 | handle_error( |
304 | 304 | err, |
305 | | - f"Timeout while getting Apple push certificate ({int(timeout)}s).", |
| 305 | + "Timeout while getting Apple push certificate.", |
306 | 306 | 14, |
307 | 307 | ) |
308 | 308 | except requests.exceptions.RequestException as err: |
@@ -357,7 +357,7 @@ def get_intune_apple_vpp_tokens( |
357 | 357 | except requests.exceptions.Timeout as err: |
358 | 358 | handle_error( |
359 | 359 | err, |
360 | | - f"Timeout while getting Apple VPP tokens ({int(timeout)}s).", |
| 360 | + "Timeout while getting Apple VPP tokens.", |
361 | 361 | 15, |
362 | 362 | ) |
363 | 363 | except requests.exceptions.RequestException as err: |
@@ -410,7 +410,7 @@ def get_intune_cert_connectors( |
410 | 410 | except requests.exceptions.Timeout as err: |
411 | 411 | handle_error( |
412 | 412 | err, |
413 | | - f"Timeout while getting certificate connectors ({int(timeout)}s).", |
| 413 | + "Timeout while getting certificate connectors.", |
414 | 414 | 16, |
415 | 415 | ) |
416 | 416 | except requests.exceptions.RequestException as err: |
|
0 commit comments