Browse Source

minor error message fix

master 3.7.1
idziubenko 1 year ago
parent
commit
8370d73da2
  1. 5
      pym/client/variables/client.py

5
pym/client/variables/client.py

@ -245,8 +245,7 @@ class VariableUrUserPw(Variable, LdapHelper):
except ldap.INVALID_CREDENTIALS:
raise VariableError(_("Wrong password"))
except ldap.LDAPError as e:
errMessage = e[0]['desc']
raise VariableError(errMessage)
raise VariableError(f"{e.args[0]['desc']}; {e.args[0]['info']}")
return True
def check(self, value):
@ -722,7 +721,7 @@ class VariableClClientRsyncProfileSet(ReadonlyVariable):
type = "bool"
value = "off"
#TODO ProfileSyncer likely doesn't work in py3
class VariableClClientSyncReplicationSet(SyncHelper, ReadonlyVariable):
"""
Нужно ли синхронизировать текущий профиль с удаленным доменом

Loading…
Cancel
Save