svgui/pyjs/build.py
changeset 1780 c52d1460cea8
parent 1775 b45f2768fab1
child 1782 5b6ad7a7fd9d
--- a/svgui/pyjs/build.py	Sat Aug 19 17:17:54 2017 +0300
+++ b/svgui/pyjs/build.py	Sat Aug 19 18:12:20 2017 +0300
@@ -11,7 +11,7 @@
 try:
     # Python 2.5 and above
     from hashlib import md5
-except:
+except Exception:
     import md5
 import re
 
@@ -77,7 +77,7 @@
     names = os.listdir(src)
     try:
         os.mkdir(dst)
-    except:
+    except Exception:
         pass
 
     errors = []
@@ -203,7 +203,7 @@
                os.path.getmtime(html_output_filename):
             try:
                 shutil.copy(html_input_filename, html_output_filename)
-            except:
+            except Exception:
                 print >>sys.stderr, "Warning: Missing module HTML file %s" % html_input_filename
 
             print "Copying: %(html_input_filename)s" % locals()