We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dcc16d commit dbf1a08Copy full SHA for dbf1a08
TTS/utils/generic_utils.py
@@ -36,9 +36,7 @@ def get_git_branch():
36
current.replace("* ", "")
37
except subprocess.CalledProcessError:
38
current = "inside_docker"
39
- except FileNotFoundError:
40
- current = "unknown"
41
- except StopIteration:
+ except (FileNotFoundError, StopIteration) as e:
42
current = "unknown"
43
return current
44
0 commit comments