diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-05-28 14:31:38 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-05-28 14:31:38 -0400 |
commit | 841f795500716f0aca9ae3842839d2fe09a8a76b (patch) | |
tree | c29b3f453be1028544be692eda040ed3ed1efc68 /cherrypy/process/plugins.py | |
parent | 04312795ddc93b5e005d6c1615ff801534ba7457 (diff) | |
download | cherrypy-git-841f795500716f0aca9ae3842839d2fe09a8a76b.tar.gz |
Don't attempt to make None absolute. Fixes #1697.
Diffstat (limited to 'cherrypy/process/plugins.py')
-rw-r--r-- | cherrypy/process/plugins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py index 506c1b7f..8c246c81 100644 --- a/cherrypy/process/plugins.py +++ b/cherrypy/process/plugins.py @@ -651,7 +651,7 @@ class Autoreloader(Monitor): 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 |