From 133420693ffb4624bf355907649fc7f7fec010da Mon Sep 17 00:00:00 2001 From: Mike Tyszka Date: Thu, 16 Feb 2023 14:57:19 -0800 Subject: [PATCH] Fixed Issue #118: "'ses_clean' referenced before assignment" with --no-sessions flag --- bidskit/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bidskit/__main__.py b/bidskit/__main__.py index 0e7ed1e..10ab36f 100755 --- a/bidskit/__main__.py +++ b/bidskit/__main__.py @@ -233,7 +233,7 @@ def main(): # If session subdirs aren't being used, *_ses_dir = *sub_dir # Use an empty ses_prefix with os.path.join to achieve this - ses = '' + ses_clean = '' ses_prefix = '' else: