Skip to content

Commit

Permalink
Revert "Revert "Update generic_utils.py (coqui-ai#3561)""
Browse files Browse the repository at this point in the history
This reverts commit ef58b6b.
  • Loading branch information
1912Alan-Turing1954 committed Jun 15, 2024
1 parent ef58b6b commit 3986b6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions TTS/utils/generic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ def get_git_branch():
current.replace("* ", "")
except subprocess.CalledProcessError:
current = "inside_docker"
except FileNotFoundError:
current = "unknown"
except StopIteration:
except (FileNotFoundError, StopIteration) as e:
current = "unknown"
return current

Expand Down

0 comments on commit 3986b6a

Please sign in to comment.