| 1 |
Author: Andreas Tille <[email protected]> |
| 2 |
Last-Update: 2026-01-31 |
| 3 |
Bug-Debian: https://bugs.debian.org/1087071 |
| 4 |
Description: Fix syntax warning with Python3.13 |
| 5 |
|
| 6 |
--- a/pepper/cli.py |
| 7 |
+++ b/pepper/cli.py |
| 8 |
@@ -471,7 +471,7 @@ class PepperCli(object): |
| 9 |
logger.error('Login token expired') |
| 10 |
raise Exception('Login token expired') |
| 11 |
except Exception as e: |
| 12 |
|
| 13 |
+ if e.args[0] != 2: |
| 14 |
logger.error('Unable to load login token from {0} {1}' |
| 15 |
.format(token_file, str(e))) |
| 16 |
auth = login(**self.parse_login()) |