winfreed.py: print also errors with no reason or code attribute
[winfreed.git] / winfreed.py
index d25a75f..b58358c 100755 (executable)
@@ -76,6 +76,8 @@ def download_file(src_url, dest_dir):
             print 'Reason: ', e.reason
         elif hasattr(e, 'code'):
             print 'Error code: ', e.code
+        else:
+            print e
         return
 
     # get the final URL after possible redirect have been followed