Skip to content

Commit

Permalink
nipapd: Change unicode() to str()
Browse files Browse the repository at this point in the history
Missing Python 3 convert.
  • Loading branch information
garberg committed Oct 4, 2023
1 parent 6b40bbc commit 465b8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nipap/nipap/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ def post(self, args):
return jsonify(_mangle_prefix(result))

except (AuthError, NipapError) as exc:
self.logger.debug(unicode(exc))
self.logger.debug(str(exc))
abort(500, error={"code": exc.error_code, "message": str(exc)})
except Exception as err:
self.logger.error(unicode(err))
self.logger.error(str(err))
abort(500, error={"code": 500, "message": "Internal error"})


Expand Down

0 comments on commit 465b8a0

Please sign in to comment.