コード例 #1
0
 def _db_connect():
     try:
         DB.connect()
     except OperationalError:
         LOGGER.exception("Error occured while connecting to database. %s",
                          format_exc())
         abort(503, "DB is not running")
コード例 #2
0
 def _db_connect():
     DB.connect()