Skip to content

Commit

Permalink
Fix bug with one-word existing profile names without ProfileBindsDir
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonrp committed Jul 6, 2024
1 parent 22f22f5 commit 47b3e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def GenerateBindsDirectoryName(self):
# Pick the longest one; fall back on first-five if it was zero candidates
#
# We're gonna lowercase this because Windows is case-insensitive
return max(bindsdircandidates, key = len).lower() or fallback
return max(bindsdircandidates, key = len).lower() if bindsdircandidates else fallback


###################
Expand Down

0 comments on commit 47b3e96

Please sign in to comment.