Skip to content

Commit

Permalink
try/except block fix for crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Robotmad authored and npentrel committed Jun 23, 2024
1 parent 2881c82 commit 7fba252
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/system/hexpansion/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ def _launch_hexpansion_app(self, port):
self._cleanup_import_path(old_cwd, old_sys_path)
return

App = package.__app_export__ if hasattr(package, "__app_export__") else None
try:
App = package.__app_export__ if hasattr(package, "__app_export__") else None
except ValueError as e:
print(e)
App = None

if App is None:
print("No exported app found")
Expand Down

0 comments on commit 7fba252

Please sign in to comment.