Permalink
Browse files

Don't attempt to make None absolute. Fixes #1697.

  • Loading branch information...
jaraco committed May 28, 2018
1 parent 0431279 commit 841f795500716f0aca9ae3842839d2fe09a8a76b
Showing with 1 addition and 1 deletion.
  1. +1 −1 cherrypy/process/plugins.py
@@ -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

0 comments on commit 841f795

Please sign in to comment.