Skip to content

Commit

Permalink
Merge pull request #184 from dchesterton/patch-1
Browse files Browse the repository at this point in the history
Fix software_information not returning correct version
  • Loading branch information
flacjacket committed Sep 10, 2021
2 parents 5197eca + 1002e8d commit 794c2ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/amcrest/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def software_information(self) -> Tuple[str, str]:
version, build_date = swinfo.split(",")
else:
version, build_date = swinfo.split()
_, _, version = build_date.rpartition("=")
_, _, version = version.rpartition("=")
_, _, build_date = build_date.rpartition(":")
return version, build_date

Expand Down

0 comments on commit 794c2ee

Please sign in to comment.