Skip to content
Snippets Groups Projects
Commit e3fe0343 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

STY: ws and import order

parent 6f267ed3
No related branches found
No related tags found
1 merge request!33MAINT: change arguments of create_user
......@@ -26,16 +26,12 @@
"""missing docstring."""
from lxml import etree
from caosdb.common.utils import xml2str
from caosdb.connection.connection import get_connection
from caosdb.exceptions import (HTTPClientError,
HTTPForbiddenError,
HTTPResourceNotFoundError,
EntityDoesNotExistError,
ServerConfigurationException,
)
from caosdb.exceptions import (EntityDoesNotExistError, HTTPClientError,
HTTPForbiddenError, HTTPResourceNotFoundError,
ServerConfigurationException)
from lxml import etree
def set_server_property(key, value):
......@@ -163,6 +159,7 @@ def _update_user(name, realm=None, password=None, status=None,
except HTTPClientError as e:
if e.status == 409:
e.msg = "Entity does not exist."
if e.status == 422:
e.msg = """Maybe the password does not match the required standard?
The current requirements are:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment