Beispiel #1
0
 def log_exception(error):
     from sagenb.notebook.notification import logger
     logger.exception(error)
     return app.message(gettext('''500: Internal server error.'''),
                        username=getattr(g, 'username', 'guest')), 500
Beispiel #2
0
 def log_exception(error):
     from sagenb.notebook.notification import logger
     logger.exception(error)
     return app.message(
         gettext('''500: Internal server error.'''),
         username=getattr(g, 'username', 'guest')), 500