Commits

Miks Kalniņš  committed afdf164

Fixed exception logging in init_all_plugins. (Fixes #9)

  • Participants
  • Parent commits dbc4b24

Comments (0)

Files changed (1)

File MoinMoin/plugin.py

         class_id = "{0}.{1}".format(cls.__module__, cls.__name__)
         try:
             initialized_plugins[class_id] = cls(cfg)
-        except:
+        except Exception as e:
             if ignore_exceptions:
-                logging.error("Failed to initialize: {0}".format(class_id))
+                logging.exception("Failed to initialize: {0}".format(class_id))
             else:
                 raise