mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02:00
log: fail gracefully if logfile can't be found
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user