Fix an 'str expected' error in import/export when setting server password in env

This commit is contained in:
Aditya Toshniwal committed 2023-08-21 13:08:19 +05:30
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