diff --git a/config/scripts/camera_name_date b/config/scripts/camera_name_date index eed88e3..0001baa 100755 --- a/config/scripts/camera_name_date +++ b/config/scripts/camera_name_date @@ -67,8 +67,8 @@ def main(args: argparse.Namespace) -> None: new_filename = ( f"{m['Y']}-{m['M']}-{m['D']}_" f"{m['h']}-{m['m']}-{m['s']}" - f"{m.get('dup', '')}" - f"{m.get('spec', '')}" + f"{m.get('dup') or ''}" + f"{m.get('spec') or ''}" f"{args.suffix}" f".{m['ext']}" )