diff --git a/main.py b/main.py index f5ba3d7..c364f5a 100644 --- a/main.py +++ b/main.py @@ -5,8 +5,11 @@ import os print("Loading modules") modules = {} for folder in os.listdir("./modules"): - curr_module = importlib.import_module('.' + folder, package="modules") - modules[folder] = curr_module.get_module() + try: + curr_module = importlib.import_module('.' + folder, package="modules") + modules[folder] = curr_module.get_module() + except AttributeError: + pass print("Modules loaded successfully.\n") print("Available Modules:")