Skip to content

Commit

Permalink
Fix missing module causing exceptions and failure to load
Browse files Browse the repository at this point in the history
  • Loading branch information
CouleeApps committed Oct 30, 2024
1 parent 30030e7 commit 6514124
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kshelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ def ks_import_class(module_name: str):
module = importlib.import_module(f'formats.{module_name}')
class_name = ''.join(map(lambda x: x.capitalize(), module_name.split('_')))
class_ref = getattr(module, class_name)
except ModuleNotFoundError as e:
print(f'ERROR: importing kaitai module {module_name} {e}')
pass
except AttributeError as e:
print(f'ERROR: importing kaitai module {module_name} {e}')
pass
Expand Down

0 comments on commit 6514124

Please sign in to comment.