Skip to content

Commit

Permalink
update exceptions for frontend checking
Browse files Browse the repository at this point in the history
  • Loading branch information
jaleezyy committed Jun 12, 2024
1 parent e2719ab commit 76eabff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/assign_lineages.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def check_frontend():
try:
subprocess.check_call(['mamba', 'list'], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
return 'mamba'
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, FileNotFoundError):
return 'conda'

def update_latest_pangolin():
Expand Down
2 changes: 1 addition & 1 deletion signalexe.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def check_frontend():
try:
subprocess.check_call(['mamba', 'list'], stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
return 'mamba'
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, FileNotFoundError):
return 'conda'

def check_directory(path: str) -> Path:
Expand Down

0 comments on commit 76eabff

Please sign in to comment.