Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Don't attempt to make None absolute. Fixes #1697.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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 |
|
|
|
|
|