mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Handle non-ascii responses from the server when connecting. Fixes #1822
This commit is contained in:
parent
1e66119ef5
commit
da3a37ab19
@ -831,6 +831,9 @@ class ServerNode(PGChildNodeView):
|
||||
)
|
||||
)
|
||||
|
||||
if hasattr(str, 'decode'):
|
||||
errmsg = errmsg.decode('utf-8')
|
||||
|
||||
return make_json_response(
|
||||
success=0,
|
||||
status=401,
|
||||
|
Loading…
Reference in New Issue
Block a user