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.
1 parent 5cfb6f2 commit a6172a4Copy full SHA for a6172a4
heudiconv/bids.py
@@ -370,7 +370,7 @@ def get_formatted_scans_key_row(dcm_fn):
370
time = dcm_data.ContentTime.split('.')[0]
371
td = time + date
372
acq_time = datetime.strptime(td, '%H%M%S%Y%m%d').isoformat()
373
- except AttributeError as exc:
+ except (AttributeError, ValueError) as exc:
374
lgr.warning("Failed to get date/time for the content: %s", str(exc))
375
acq_time = None
376
# add random string
0 commit comments