Skip to content

Fix NameError when cancelling clone-session file dialogs - #25

Open
BrennanTM wants to merge 1 commit into
PrecisionNeuroLab:mainfrom
BrennanTM:fix/clone-session-cancel
Open

Fix NameError when cancelling clone-session file dialogs#25
BrennanTM wants to merge 1 commit into
PrecisionNeuroLab:mainfrom
BrennanTM:fix/clone-session-cancel

Conversation

@BrennanTM

Copy link
Copy Markdown

What broke — both dialog-cancel checks in ManageSessionPanel._cloneSession referenced an undefined sesFilepath (should be fromSesFilepath / toSesFilepath) → cancelling either dialog raised NameError instead of aborting.

Fix — reference the right variables. No new test (modal-dialog path); confirmed by pyflakes. All other dialog-cancel checks in the panel were already correct.

Both dialog-cancel checks in _cloneSession referenced an undefined name
'sesFilepath' instead of fromSesFilepath/toSesFilepath, so cancelling
either file dialog raised NameError instead of aborting the clone.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant