diff --git a/osc/babysitter.py b/osc/babysitter.py index 20687802..030bf196 100644 --- a/osc/babysitter.py +++ b/osc/babysitter.py @@ -134,10 +134,6 @@ def run(prg): print >>sys.stderr, e.msg return 1 - except IOError, e: - print >>sys.stderr, e - return 1 - except AttributeError, e: print >>sys.stderr, e return 1 diff --git a/osc/fetch.py b/osc/fetch.py index b9ce7e54..82d96691 100644 --- a/osc/fetch.py +++ b/osc/fetch.py @@ -206,7 +206,7 @@ class Fetcher: dest = "%s/%s" % (self.cachedir, i) if not os.path.exists(dest): os.makedirs(dest, mode=0755) - dest += '/_pubkey' + dest += '/_pubkey' if os.path.exists(dest): buildinfo.keys.append(dest) @@ -335,10 +335,9 @@ def verify_pacs(pac_list, key_list): except Exception, e: failed = True print pkg, ':', e - except Exception, e: - print str(e) + except: checker.cleanup() - sys.exit(1) + raise if failed: checker.cleanup()