Skip to content

Commit

Permalink
fix: nonetype module causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Mar 6, 2023
1 parent 294b72e commit 5cd58af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/creosote/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_module_info_from_code(path):
if isinstance(node, ast.Import):
module = []
elif isinstance(node, ast.ImportFrom):
module = node.module.split(".")
module = node.module.split(".") if node.module else []
else:
continue

Expand Down

0 comments on commit 5cd58af

Please sign in to comment.