diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-13 23:14:50 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-13 23:14:50 +0100 |
commit | e1baccf1ec914563d3b2b845906cce024e7cd3b1 (patch) | |
tree | 7113e8923ea58112787ce93d5ab9d98e277926c9 /module/plugins/container | |
parent | [SimpleCrypter] Better account retrieving (diff) | |
download | pyload-e1baccf1ec914563d3b2b845906cce024e7cd3b1.tar.xz |
Replace 'except' with 'except Exception'
Diffstat (limited to 'module/plugins/container')
-rw-r--r-- | module/plugins/container/LinkList.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/container/LinkList.py b/module/plugins/container/LinkList.py index c6173ad73..69461249e 100644 --- a/module/plugins/container/LinkList.py +++ b/module/plugins/container/LinkList.py @@ -23,7 +23,7 @@ class LinkList(Container): def decrypt(self, pyfile): try: file_enc = codecs.lookup(self.getConfig("encoding")).name - except: + except Exception: file_enc = "utf-8" file_name = fs_encode(pyfile.url) @@ -64,7 +64,7 @@ class LinkList(Container): try: txt = open(file_name, 'wb') txt.close() - except: + except Exception: self.logWarning(_("LinkList could not be cleared")) for name, links in packages.iteritems(): |