Merge pull request #1900 from bostrick/devel
protect PluginLoader._extra_dirs from appending Nonepull/4420/head
commit
51180fa344
|
@ -70,7 +70,8 @@ class PluginLoader(object):
|
|||
|
||||
def add_directory(self, directory):
|
||||
"""Adds an additional directory to the search path"""
|
||||
self._extra_dirs.append(directory)
|
||||
if directory is not None:
|
||||
self._extra_dirs.append(directory)
|
||||
|
||||
def print_paths(self):
|
||||
"""Returns a string suitable for printing of the search path"""
|
||||
|
|
Loading…
Reference in New Issue