Skip to content

Commit

Permalink
now skips non-directory in plug-in directories
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceMaverick committed Jan 30, 2017
1 parent b65e8aa commit ff9bba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skybeard/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def is_module(path):
# Python 3 allows modules not to have an __init__.py
if any(os.path.splitext(x)[1] == ".py" for x in os.listdir(path)):
return True
except FileNotFoundError:
except (FileNotFoundError, NotADirectoryError) as e:
logger.debug(e, 'Skipping un-recognised file or directory in plug-in path')
pass


Expand Down

0 comments on commit ff9bba1

Please sign in to comment.