Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Actually ingest files that are not archives (like bare pdfs). Fixes #10.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Feb 21, 2014
1 parent fc3067c commit ed61a77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions summershum/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ed61a77

Please sign in to comment.