Skip to content
Snippets Groups Projects
Commit 2df2d421 authored by Eric Larson's avatar Eric Larson Committed by Nathaniel Kofalt
Browse files

FIX: Better logging of error

parent e809da3d
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,8 @@ def parse_file(filepath, digest):
try:
log.info('Parsing %s' % filename)
dataset = scitran.data.parse(filepath)
except scitran.data.DataError:
log.info('Unparsable %s' % filename)
except scitran.data.DataError as exp:
log.info('Unparsable %s (%s)' % (filename, exp))
return None
filename = dataset.nims_file_name + dataset.nims_file_ext
fileinfo = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment