Skip to content

Commit

Permalink
Fix, was not annotating exception exit when converting import to hard…
Browse files Browse the repository at this point in the history
… submodule import
  • Loading branch information
kayhayen committed May 14, 2024
1 parent fcc1b55 commit 1d3995a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nuitka/nodes/ImportNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ def _computeExpressionAttribute(
full_name = ModuleName(hard_modules_aliases.get(full_name, full_name))

if isHardModule(full_name):
trace_collection.onExceptionRaiseExit(BaseException)

new_node = ExpressionImportModuleHard(
using_module_name=self.using_module_name,
module_name=full_name,
Expand Down

0 comments on commit 1d3995a

Please sign in to comment.