1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 10:06:17 +01:00

Handle ProtocolError exception

This commit is contained in:
Andreas Schwab 2023-05-19 21:40:40 +02:00
parent 04fb100ca9
commit 623148a04a

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: