diff --git a/heudiconv/main.py b/heudiconv/main.py index c9e8ac4c..8b65f45e 100644 --- a/heudiconv/main.py +++ b/heudiconv/main.py @@ -252,16 +252,16 @@ def workflow(*, dicom_dir_template=None, files=None, subjs=None, outdir = op.abspath(outdir) + latest = None try: import etelemetry latest = etelemetry.get_project("nipy/heudiconv") except Exception as e: lgr.warning("Could not check for version updates: %s", str(e)) - latest = {"version": 'Unknown'} lgr.info(INIT_MSG(packname=__packagename__, version=__version__, - latest=latest["version"])) + latest=(latest or {}).get("version", "Unknown"))) if command: process_extra_commands(outdir, command, files, dicom_dir_template,