Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Actually ingest files that are not archives (like bare pdfs). Fixes #10.

  • Loading branch information...
commit ed61a77e5f395a778498446ec363b7e0e88c91a0 1 parent fc3067c
@ralphbean ralphbean authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 summershum/utils.py
View
8 summershum/utils.py
@@ -62,11 +62,11 @@ def calculate_sums(session, message, tmpdir):
filename = proc.communicate()[0].split('\n')[0].split('/')[0]
- if not filename:
+ if filename:
+ filename = "/".join([tmpdir, filename])
+ else:
log.warning("No files extracted from %r" % local_filename)
- return
-
- filename = "/".join([tmpdir, filename])
+ filename = tmpdir
count, stored = 0, 0
for fname, sha256sum, sha1sum, md5sum in walk_directory(filename):
Please sign in to comment.
Something went wrong with that request. Please try again.