Skip to content

Commit c206494

Browse files
committed
Include exception on module load failure
1 parent 2db38ff commit c206494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiling/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ def debugger_convert_str(debugger_id):
256256
def ql_get_module_function(module_name, function_name = None):
257257
try:
258258
imp_module = importlib.import_module(module_name)
259-
except:
260-
raise QlErrorModuleNotFound("[!] Unable to import module %s" % module_name)
259+
except Exception as ex:
260+
raise QlErrorModuleNotFound("[!] Unable to import module %s (%s)" % (module_name, ex))
261261

262262
try:
263263
module_function = getattr(imp_module, function_name)

0 commit comments

Comments
 (0)