Skip to content

Commit

Permalink
fix mod is not defined error
Browse files Browse the repository at this point in the history
Summary:
This slipped by during the refactor of
`load_compiled_module_from_source` since the code path wasn't being
executed. Looking into how this operated before the refactor,
`mod.errors` was never accessed, so this is a no-op.

Reviewed By: DinoV

Differential Revision: D50020255

fbshipit-source-id: 9e729eacf8cf18c8deb2ca43b98343f83af3f750
  • Loading branch information
pilleye authored and facebook-github-bot committed Oct 12, 2023
1 parent 8fa7e0d commit 40e4e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/compiler/strict/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def _compile_static(
e.lineno or 1,
0,
)
mod.errors.append(err)

if self.raise_on_error:
raise err

Expand Down

0 comments on commit 40e4e28

Please sign in to comment.