We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c001440 commit e0646f7Copy full SHA for e0646f7
switch_model/__main__.py
@@ -39,11 +39,10 @@ def main():
39
del sys.argv[1]
40
if cmd == "--version":
41
print("Switch model version " + switch_model.__version__)
42
- try:
43
- from switch_model.utilities import get_git_branch
44
- print(f"Switch git branch {get_git_branch()}")
45
- except:
46
- pass
+ from switch_model.utilities import get_git_branch
+ branch = get_git_branch()
+ if branch is not None:
+ print(f"Switch Git branch: {branch}")
47
return 0
48
if cmd == "solve":
49
from switch_model.solve import main
0 commit comments