allura
Revisão | 489d48926e6ced8964b59dd51cc77e302d525131 (tree) |
---|---|
Hora | 2010-04-24 01:46:32 |
Autor | Rick Copeland <rcopeland@geek...> |
Commiter | Rick Copeland |
Fix another problem with the context object
@@ -77,8 +77,11 @@ class RootController(BaseController): | ||
77 | 77 | |
78 | 78 | def _cleanup_request(self): |
79 | 79 | ming.orm.ormsession.ThreadLocalORMSession.flush_all() |
80 | - for msg in c.queued_messages: | |
81 | - g._publish(**msg) | |
80 | + try: | |
81 | + for msg in c.queued_messages: | |
82 | + g._publish(**msg) | |
83 | + except TypeError: | |
84 | + pass | |
82 | 85 | ming.orm.ormsession.ThreadLocalORMSession.close_all() |
83 | 86 | |
84 | 87 | @expose('pyforge.templates.project_list') |