mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-26 13:17:19 -05:00
Fixed issue while using decode() without checking type of the variable. Type maybe string or byte.
This commit is contained in:
committed by
Akshay Joshi
parent
8bd17cb433
commit
76087f3df3
@@ -53,7 +53,9 @@ else:
|
||||
from io import StringIO
|
||||
|
||||
def u(x):
|
||||
return x.decode()
|
||||
if hasattr(x, 'decode'):
|
||||
return x.decode()
|
||||
return x
|
||||
|
||||
|
||||
def usage():
|
||||
|
||||
Reference in New Issue
Block a user