Skip to content

Commit 841f795

Browse files
committed
Don't attempt to make None absolute. Fixes #1697.
1 parent 0431279 commit 841f795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cherrypy/process/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def _archive_for_zip_module(module):
651651
def _file_for_file_module(cls, module):
652652
"""Return the file for the module."""
653653
try:
654-
return cls._make_absolute(module.__file__)
654+
return module.__file__ and cls._make_absolute(module.__file__)
655655
except AttributeError:
656656
pass
657657

0 commit comments

Comments
 (0)