mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 08:10:03 -06:00
Fix an 'str expected' error in import/export when setting server password in env
This commit is contained in:
1 parent
7f5433b307
commit
779749a515
1 file changed
+2
@@ -539,6 +539,8 @@ WHERE db.oid = {0}""".format(did))
|
||||
if not crypt_key_present:
|
||||
return False, crypt_key
|
||||
password = decrypt(self.password, crypt_key).decode()
|
||||
elif hasattr(self.password, 'decode'):
|
||||
password = self.password.decode('utf-8')
|
||||
else:
|
||||
password = self.password
|
||||
|
||||
|
||||
Reference in new issue
Block a user