Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
production
building-knowledge-centre
building-dao
Commits
3399e197
Commit
3399e197
authored
Oct 21, 2019
by
Marc-Andre Santune
Browse files
raise HTTP error in _update_with_version
parent
c92d4e66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
building_dao/building_generic.py
building_dao/building_generic.py
+2
-1
No files found.
building_dao/building_generic.py
View file @
3399e197
...
@@ -2,6 +2,7 @@ import logging
...
@@ -2,6 +2,7 @@ import logging
from
base64
import
b64encode
from
base64
import
b64encode
from
os.path
import
join
from
os.path
import
join
from
typing
import
Optional
from
typing
import
Optional
from
simplejson
import
JSONDecodeError
import
requests
import
requests
from
requests.exceptions
import
HTTPError
from
requests.exceptions
import
HTTPError
...
@@ -280,5 +281,5 @@ class BuildingGeneric:
...
@@ -280,5 +281,5 @@ class BuildingGeneric:
if
e
.
response
.
status_code
==
500
and
"version conflict error"
in
e
.
response
.
text
.
lower
():
if
e
.
response
.
status_code
==
500
and
"version conflict error"
in
e
.
response
.
text
.
lower
():
raise
VersionConflictError
raise
VersionConflictError
else
:
else
:
self
.
logger
.
exception
(
e
.
response
.
text
)
raise
return
res
return
res
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment