1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-06 23:53:39 +02:00

Merge pull request #1328 from andreas-schwab/master

Handle ProtocolError exception
This commit is contained in:
2023-05-19 22:16:36 +02:00
committed by GitHub

View File

@@ -193,6 +193,8 @@ def run(prg, argv=None):
print(e, file=sys.stderr)
except urllib3.exceptions.MaxRetryError as e:
print(e.reason, file=sys.stderr)
except urllib3.exceptions.ProtocolError as e:
print(e.args[0], file=sys.stderr)
except CpioError as e:
print(e, file=sys.stderr)
except oscerr.OscBaseError as e: