docent-python 0.1.0a3__py3-none-any.whl → 0.1.0a4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docent/sdk/client.py +7 -0
- {docent_python-0.1.0a3.dist-info → docent_python-0.1.0a4.dist-info}/METADATA +1 -1
- {docent_python-0.1.0a3.dist-info → docent_python-0.1.0a4.dist-info}/RECORD +5 -5
- {docent_python-0.1.0a3.dist-info → docent_python-0.1.0a4.dist-info}/WHEEL +0 -0
- {docent_python-0.1.0a3.dist-info → docent_python-0.1.0a4.dist-info}/licenses/LICENSE.md +0 -0
docent/sdk/client.py
CHANGED
@@ -54,6 +54,13 @@ class Docent:
|
|
54
54
|
response = self._session.post(
|
55
55
|
login_url, json={"email": self._email, "password": self._password}
|
56
56
|
)
|
57
|
+
|
58
|
+
if response.status_code == 401:
|
59
|
+
raise ValueError(
|
60
|
+
"Invalid username/password combination. "
|
61
|
+
f"If you don't already have an account, please sign up at {self._web_url}/signup"
|
62
|
+
)
|
63
|
+
|
57
64
|
response.raise_for_status()
|
58
65
|
logger.info(f"Successfully logged in as {self._email}")
|
59
66
|
|
@@ -15,8 +15,8 @@ docent/data_models/chat/content.py,sha256=Co-jO8frQa_DSP11wJuhPX0s-GpJk8yqtKqPei
|
|
15
15
|
docent/data_models/chat/message.py,sha256=iAo38kbV6wYbFh8S23cxLy6HY4C_i3PzQ6RpSQG5dxM,3861
|
16
16
|
docent/data_models/chat/tool.py,sha256=x7NKINswPe0Kqvcx4ubjHzB-n0-i4DbFodvaBb2vitk,3042
|
17
17
|
docent/sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
|
-
docent/sdk/client.py,sha256=
|
19
|
-
docent_python-0.1.
|
20
|
-
docent_python-0.1.
|
21
|
-
docent_python-0.1.
|
22
|
-
docent_python-0.1.
|
18
|
+
docent/sdk/client.py,sha256=L97C9uo1Qv2UkwIW9_yXnYD5wiC7kUyg6HnobGO9q_U,8830
|
19
|
+
docent_python-0.1.0a4.dist-info/METADATA,sha256=wY8AG--TNjNQ-KjtDqqTw6YvzdscMjposd_flYpFdRU,493
|
20
|
+
docent_python-0.1.0a4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
21
|
+
docent_python-0.1.0a4.dist-info/licenses/LICENSE.md,sha256=vOHzq3K4Ndu0UV9hPrtXvlD7pHOjyDQmGjHuLSIkRQY,1087
|
22
|
+
docent_python-0.1.0a4.dist-info/RECORD,,
|
File without changes
|
File without changes
|