Skip to content

Commit

Permalink
appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloodmallet committed Dec 3, 2023
1 parent 885fbc6 commit 7e5e93e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bloodytools/utils/simc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ def get_simc_hash(executable_path: str) -> str:
).stdout
# Extract git hash from build version, which looks like
# SimulationCraft 1015-01 for World of Warcraft 10.1.7.51536 Live (hotfix 2023-09-27/51536, git build dragonflight d90d5c5)
simc_hash = re.search(r"git build \w+ ([^\)]+)", simc_output).group(1)
return simc_hash
search = re.search(r"git build \w+ ([^\)]+)", simc_output)
if not search:
raise ValueError("SimulationCraft version could not get extracted")
simc_hash = search.group(1)
return str(simc_hash)

0 comments on commit 7e5e93e

Please sign in to comment.