summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crocoite/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crocoite/util.py b/crocoite/util.py
index 73a1d65..eebe909 100644
--- a/crocoite/util.py
+++ b/crocoite/util.py
@@ -87,7 +87,7 @@ def getRequirements (dist):
pkg = getattr (m, '__package__', None)
# is loaded?
if pkg in modules:
- if f:
+ if f and os.path.isfile (f):
with open (f, 'rb') as fd:
contents = fd.read ()
h = hashlib.new ('sha512')