Commits

Marc-Alexandre Chan committed 62fa7fb

Fixed issue with prematurely closed DB session (exc on building reply string)

Comments (0)

Files changed (1)

minibot/events.py

         log.info(u"%s: Removed prompt '%s' (%d) from database queue.",
                  classname(self), self.prompt.title, self.prompt.id)
 
-        db.close()
-
     def _run_reddit(self):
         log = self.res['logger']
 
         self.res['dbsession'].close()
         del self.res['dbsession']
 
+    def handle_exception(self, e):
+        return self.owner.EXC_UNHANDLED
+
     def __repr__(self):
         return unicode(self).encode('unicode-escape')