We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 202f943 + a6172a4 commit bad781aCopy full SHA for bad781a
heudiconv/bids.py
@@ -411,7 +411,7 @@ def get_formatted_scans_key_row(dcm_fn):
411
time = dcm_data.ContentTime.split('.')[0]
412
td = time + date
413
acq_time = datetime.strptime(td, '%H%M%S%Y%m%d').isoformat()
414
- except AttributeError as exc:
+ except (AttributeError, ValueError) as exc:
415
lgr.warning("Failed to get date/time for the content: %s", str(exc))
416
acq_time = None
417
# add random string
0 commit comments