1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

Merge branch 'fix_urlgraberror_handling' of https://github.com/OlegGirko/osc

This commit is contained in:
Marcus Huewe 2017-01-18 18:18:15 +01:00
commit 41187aa705

View File

@ -143,7 +143,7 @@ def run(prg, argv=None):
print('Failed to reach a server:\n', e.reason, file=sys.stderr)
return 1
except URLGrabError as e:
print('Failed to grab %s: %s' % (e.url, e.exception), file=sys.stderr)
print('Failed to grab %s: %s' % (e.url, e.strerror), file=sys.stderr)
return 1
except IOError as e:
# ignore broken pipe