]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/modules/__init__.py
Fixes OSQA 393, cannot send feedback when user is authenticated.
[osqa.git] / forum / modules / __init__.py
index 77a266fc799018f2c5024daeb130813382c7fe1f..07cbc6edde5ea74dc6e6139f4a245822c80e0292 100644 (file)
@@ -1,6 +1,7 @@
 import os
 import types
 import re
 import os
 import types
 import re
+import logging
 
 from django.template import Template, TemplateDoesNotExist
 from django.conf import settings
 
 from django.template import Template, TemplateDoesNotExist
 from django.conf import settings
@@ -29,9 +30,10 @@ def get_modules_script(script_name):
             #print repr(type(e)) + m.__name__ + ":" + str(e)
             pass
         except:
             #print repr(type(e)) + m.__name__ + ":" + str(e)
             pass
         except:
-            pass
-            #import sys, traceback
-            #traceback.print_exc(file=sys.stdout)
+            import traceback
+            logging.error("Error importing %s from module %s: \n %s" % (
+                script_name, m.__name__, traceback.format_exc()
+            ))
 
     return all
 
 
     return all