Skip to content

Commit

Permalink
Merge pull request #518 from procrastinate-org/dependabot/pip/types-p…
Browse files Browse the repository at this point in the history
…ython-dateutil-2.8.4
  • Loading branch information
Joachim Jablon authored Dec 30, 2021
2 parents 3da57dd + 08f55b4 commit d235134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion procrastinate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _get_module_name(obj: Any) -> str:
module = inspect.getmodule(obj)
# obj could be None, or has no __file__ if in an interactive shell
# in which case, there's not a lot we can do.
if not module or not getattr(module, "__file__"):
if not module or not getattr(module, "__file__", None):
return module_name

# We've checked this just above but mypy needs a direct proof
Expand Down

0 comments on commit d235134

Please sign in to comment.