diff --git a/dcm2bids/sidecar.py b/dcm2bids/sidecar.py index 0cb7ba07..f397e3fd 100644 --- a/dcm2bids/sidecar.py +++ b/dcm2bids/sidecar.py @@ -396,7 +396,7 @@ def compare_float(name, pattern): elif isinstance(name, list): result.append(compare_list(name, pattern)) - else: + elif name: result.append(compare(name, pattern)) return all(result)