]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/download.py
Cleanup: Fix flake8 E722 do not use bare except
[m_librarian.git] / m_librarian / download.py
index 8e309cb3cbda9a26b856d4f778fbcb25157740ab..30412013123eb317883464c7fef5d9c1cf0c790e 100755 (executable)
@@ -1,5 +1,6 @@
 #! /usr/bin/env python
 
+from __future__ import print_function
 import os
 from time import mktime
 from shutil import copyfileobj
@@ -20,7 +21,7 @@ def _compile_format():
         compile_format = False
         try:
             format = get_config().get('download', 'format')
-        except:
+        except Exception:
             return
     got_percent = False
     compiled = []
@@ -108,7 +109,8 @@ def download(book, path=None, a_format=None):
 
 def test():
     _compile_format()
-    print compiled_format
+    print(compiled_format)
+
 
 if __name__ == '__main__':
     test()