mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Don't try to decode connection error strings that are null.
This commit is contained in:
parent
03f292ce51
commit
03a161cc0a
@ -584,7 +584,7 @@ class ServerNode(PGChildNodeView):
|
||||
password=password,
|
||||
server_types=ServerType.types()
|
||||
)
|
||||
if hasattr(str, 'decode'):
|
||||
if hasattr(str, 'decode') and errmsg is not None:
|
||||
errmsg = errmsg.decode('utf-8')
|
||||
if not status:
|
||||
db.session.delete(server)
|
||||
|
Loading…
Reference in New Issue
Block a user