Rev 64: Bare except to Exception. in http://people.canonical.com/~robertc/baz2.0/plugins/builder/blocking

Robert Collins robertc at robertcollins.net
Fri Oct 23 21:43:23 BST 2009


At http://people.canonical.com/~robertc/baz2.0/plugins/builder/blocking

------------------------------------------------------------
revno: 64
revision-id: robertc at robertcollins.net-20091023204322-xwrr30wou3jjwyi1
parent: robertc at robertcollins.net-20091023203724-4ekzxm9g5qp39suy
committer: Robert Collins <robertc at robertcollins.net>
branch nick: blocking
timestamp: Sat 2009-10-24 07:43:22 +1100
message:
  Bare except to Exception.
=== modified file 'ppa.py'
--- a/ppa.py	2009-10-23 20:37:24 +0000
+++ b/ppa.py	2009-10-23 20:43:22 +0000
@@ -35,7 +35,7 @@
     try:
         credentials.load(open(oauth_file))
         launchpad = Launchpad(credentials, EDGE_SERVICE_ROOT)
-    except:
+    except Exception:
         cachedir = os.path.expanduser("~/.launchpadlib/cache/")
         launchpad = Launchpad.get_token_and_login('get-build-status', EDGE_SERVICE_ROOT, cachedir)
         launchpad.credentials.save(file(oauth_file, "w"))




More information about the bazaar-commits mailing list