Skip to content

Commit 3dc92d3

Browse files
AWSWCommunityAWSWCommunity
authored andcommitted
Stop catching import errors to improve stack trace readability
1 parent a5df506 commit 3dc92d3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

modloader/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ def get_mod_path():
2828

2929
# Try importing the mod. If all goes well, the mod is imported through the Mod class
3030
print("Begin mod load: {}".format(mod))
31-
try:
32-
importlib.import_module(mod)
33-
except Exception, e:
34-
print("Exception while loading: {}".format(mod))
35-
print(e)
36-
raise e # Raise it again even though the stacktrace provides nothing useful
31+
#try:
32+
importlib.import_module(mod)
3733

3834
# After all mods are loaded, call their respective mod_complete functions
3935
for mod_name, mod in modinfo.get_mods().iteritems():

0 commit comments

Comments
 (0)