Commits

Anonymous committed 897fcf4

Trying not to accidentally catch KeyboardInterrupt.

See http://stackoverflow.com/q/2669750/25625 for more detail.

Comments (0)

Files changed (2)

app_sizer/app_import.py

         plist_data = BytesIO(ipa.read("iTunesMetadata.plist"))
         plist = biplist.readPlist(plist_data)
         plist_data.close()
-    except:
+    except Exception:
         log.warn("Non-binary-plist?    What exception is this?", exc_info=True)
         # I wonder when Apple stopped using XML plists...
         plist_data = BytesIO(ipa.read("iTunesMetadata.plist"))

app_sizer/backup_import.py

                 if "buttonBar" in plist.keys():
                     print "Found a Springboard plist: {}".format(f)
                     yield [f, plist]
-            except:
+            except Exception:
                 pass
 
 def read_springboard_plist(name="aeacdfd9fadbbe56548a40e02b7685d324050e54", backup_dir=None):
     try:
         plist = plistlib.readPlist(filename)
         return plist['Device Name']
-    except:
+    except Exception:
         return None
 
 STOCK_APPS = """