mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 22:56:15 +01:00
log: fail gracefully if logfile can't be found
This commit is contained in:
parent
458ffb51cb
commit
d5ba95193b
@ -967,6 +967,11 @@ class Osc(cmdln.Cmdln):
|
||||
break
|
||||
offset += len(log_chunk)
|
||||
print log_chunk.strip()
|
||||
|
||||
except urllib2.HTTPError, e:
|
||||
print >>sys.stderr, 'Can\'t get logfile'
|
||||
print >>sys.stderr, e
|
||||
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user