Skip to content

Commit

Permalink
Fix WindowsError (#343)
Browse files Browse the repository at this point in the history
* Fix `WindowsError`

`subprocess.CalledProcessError` only works if git client is installed

* Update version number
  • Loading branch information
Jens West authored Jul 5, 2021
1 parent 7fac538 commit 16f6ad8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Scripts/dev-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"HELMET_VERSION": "v4.0.5",
"HELMET_VERSION": "v4.0.6",
"LOG_LEVEL": "INFO",
"LOG_FORMAT": "TEXT",
"RUN_AGENT_SIMULATION": false,
Expand All @@ -15,4 +15,4 @@
"FORECAST_DATA_PATH": "C:\\XXX\\Ennusteskenaarioiden_syottotiedot\\2017",
"ITERATION_COUNT": 1,
"USE_FIXED_TRANSIT_COST": false
}
}
2 changes: 1 addition & 1 deletion Scripts/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def HELMET_VERSION(self):
try:
# If model system is in a git repo
return subprocess.check_output(["git", "describe", "--tags"])
except subprocess.CalledProcessError:
except (subprocess.CalledProcessError, WindowsError):
# If model system is downloaded with helmet-ui
return self.__get_value("HELMET_VERSION")

Expand Down

0 comments on commit 16f6ad8

Please sign in to comment.