Skip to content

Commit

Permalink
Remove useless exception from ERR_USER_REVOKED_UNKNOWN_ERROR and ERR_…
Browse files Browse the repository at this point in the history
…USER_LIST_UNKNOWN_ERROR (already handled by show_error)
  • Loading branch information
touilleMan committed Dec 2, 2019
1 parent 00f540f commit 424fcf5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions parsec/core/gui/tr/parsec_en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1064,11 +1064,11 @@ msgstr "This user does not exists."
msgid "ERR_USER_REVOKED_NOT_ENOUGH_PERMISSIONS"
msgstr "You don't have the permissions required to revoke this user."

msgid "ERR_USER_REVOKED_UNKNOWN_ERROR_{}"
msgstr "Cannot revoke this user ({})."
msgid "ERR_USER_REVOKED_UNKNOWN_ERROR"
msgstr "Cannot revoke this user."

msgid "ERR_USER_LIST_UNKNOWN_ERROR_{}"
msgstr "Cannot retrieve the list of users ({})."
msgid "ERR_USER_LIST_UNKNOWN_ERROR"
msgstr "Cannot retrieve the list of users."

msgid "ASK_USER_REVOKE_TITLE"
msgstr "Revoke a user"
Expand Down
8 changes: 4 additions & 4 deletions parsec/core/gui/tr/parsec_fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1070,11 +1070,11 @@ msgstr "Cet utilisateur n'existe pas."
msgid "ERR_USER_REVOKED_NOT_ENOUGH_PERMISSIONS"
msgstr "Vous n'avez pas les permissions de révoquer cet utilisateur."

msgid "ERR_USER_REVOKED_UNKNOWN_ERROR_{}"
msgstr "Impossible de révoquer cet utilisateur ({})."
msgid "ERR_USER_REVOKED_UNKNOWN_ERROR"
msgstr "Impossible de révoquer cet utilisateur."

msgid "ERR_USER_LIST_UNKNOWN_ERROR_{}"
msgstr "Impossible de retrouver la liste des utilisateurs ({})."
msgid "ERR_USER_LIST_UNKNOWN_ERROR"
msgstr "Impossible de retrouver la liste des utilisateurs."

msgid "ASK_USER_REVOKE_TITLE"
msgstr "Révoquer un utilisateur"
Expand Down
4 changes: 2 additions & 2 deletions parsec/core/gui/users_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def on_revoke_error(self, job):
elif status == "offline":
errmsg = _("ERR_BACKEND_OFFLINE")
else:
errmsg = _("ERR_USER_REVOKED_UNKNOWN_ERROR_{}").format(job.exc)
errmsg = _("ERR_USER_REVOKED_UNKNOWN_ERROR")
show_error(self, errmsg, exception=job.exc)

def revoke_user(self, user_button):
Expand Down Expand Up @@ -263,7 +263,7 @@ def on_list_error(self, job):
if status == "offline":
return
else:
errmsg = _("ERR_USER_LIST_UNKNOWN_ERROR_{}").format(job.exc)
errmsg = _("ERR_USER_LIST_UNKNOWN_ERROR")
show_error(self, errmsg, exception=job.exc)

def reset(self):
Expand Down

0 comments on commit 424fcf5

Please sign in to comment.