]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/modules/__init__.py
Fix identation error.
[osqa.git] / forum / modules / __init__.py
index 023b46406220894d72e9849e0e195fc2a5428610..cd59875d65c3f0cc1b1acfc7fc6c767666f69464 100644 (file)
@@ -25,9 +25,13 @@ def get_modules_script(script_name):
     for m in MODULE_LIST:
         try:
             all.append(__import__('%s.%s' % (m.__name__, script_name), globals(), locals(), [m.__name__]))
-        except Exception, e:
-            #print m.__name__ + ":" + str(e)
+        except ImportError, e:
+            #repr(type(e)) + m.__name__ + ":" + str(e)
             pass
+        except:
+            pass
+            #import sys, traceback
+            #traceback.print_exc(file=sys.stdout)
 
     return all