Skip to content

Commit

Permalink
caimanmanager: "is None" still can't be used on a variable if it was …
Browse files Browse the repository at this point in the history
…created in a branch, so assign =None
  • Loading branch information
pgunn committed May 31, 2024
1 parent d0a5eb3 commit ddca982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caiman/caimanmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@

def do_install_to(targdir: str, inplace: bool = False, force: bool = False) -> None:
global sourcedir_base
cwd = None # Assigning so it exists to avoid UnboundLocalError

try:
import importlib
Expand Down

0 comments on commit ddca982

Please sign in to comment.