Commit 749a9187 authored by Marc-Andre Santune's avatar Marc-Andre Santune
Browse files

update _update_with_version

parent ee39518f
......@@ -248,7 +248,7 @@ class BuildingGeneric:
"put", url, json={**payload, "version": self._building["version"]}
)
except HTTPError as e:
if e.response.status_code == 500 and "conflict" in e.response.text.lower():
if e.response.status_code == 500 and "version conflict error" in e.response.text.lower():
raise VersionConflictError
else:
self.logger.exception(e.response.text)
......
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