Skip to content

Commit

Permalink
WIP xapi-storage: use real strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Feb 6, 2024
1 parent 004590e commit c82213f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocaml/xapi-storage/python/xapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def handle_exception(e, code=None, params=None):
files.append(slot[0])
lines.append(slot[1])
backtrace = {
"error": str(s[1]),
"error": unicode(s[1]),
"files": files,
"lines": lines,
}
code = "SR_BACKEND_FAILURE"
params = [s[0].__name__, str(s[1])]
params = [s[0].__name__, unicode(s[1])]
if hasattr(e, "code"):
code = e.code
if hasattr(e, "params"):
Expand Down

0 comments on commit c82213f

Please sign in to comment.