Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't attempt to make None absolute. Fixes #1697.
  • Loading branch information
jaraco committed May 28, 2018
1 parent 0431279 commit 841f795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cherrypy/process/plugins.py
Expand Up @@ -651,7 +651,7 @@ def _archive_for_zip_module(module):
def _file_for_file_module(cls, module):
"""Return the file for the module."""
try:
return cls._make_absolute(module.__file__)
return module.__file__ and cls._make_absolute(module.__file__)
except AttributeError:
pass

Expand Down

0 comments on commit 841f795

Please sign in to comment.