1
0
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:
Dr. Peter Poeml 2007-06-26 14:22:23 +00:00
parent 458ffb51cb
commit d5ba95193b

View File

@ -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