implement basic mysql functionality

This commit is contained in:
Jan Speller 2021-02-16 01:09:04 +01:00
parent a74f28150d
commit 9d73be593f
2 changed files with 178 additions and 3 deletions

View file

@ -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")