mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-07 15:24:00 +00:00
implement basic mysql functionality
This commit is contained in:
parent
a74f28150d
commit
9d73be593f
2 changed files with 178 additions and 3 deletions
|
|
@ -28,6 +28,7 @@ logging.debug("- %s loaded", __name__)
|
|||
|
||||
class RouterManager:
|
||||
"""!Class to manage all routers"""
|
||||
|
||||
def __init__(self):
|
||||
"""!Create new router"""
|
||||
self._routerDict = {}
|
||||
|
|
@ -92,9 +93,8 @@ class RouterManager:
|
|||
logging.error("unknown type '%s' in %s", routeType, route)
|
||||
return False
|
||||
|
||||
# except ModuleNotFoundError: # only since Py3.6
|
||||
except ImportError:
|
||||
logging.error("%s not found: %s", route.get("type"), route.get("res"))
|
||||
except ModuleNotFoundError as e:
|
||||
logging.error("%s not found: %s (%s)", route.get("type"), route.get("res"), str(e))
|
||||
return False
|
||||
|
||||
logging.debug("finished building routers")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue