Commit 1b648ab6 authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

cast version to str

parent b8c13ef8
......@@ -263,7 +263,7 @@ class BuildingGeneric:
"""
try:
res = self._req(
"put", url, json={**payload, "version": self._building["version"]}
"put", url, json={**payload, "version": str(self._building["version"])}
)
except HTTPError as e:
if e.response.status_code == 500 and "version conflict error" in e.response.text.lower():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment