clerk-sdk 0.3.0__py3-none-any.whl → 0.3.2__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.
- clerk/decorator/task_decorator.py +1 -1
- clerk/exceptions/exceptions.py +30 -3
- {clerk_sdk-0.3.0.dist-info → clerk_sdk-0.3.2.dist-info}/METADATA +1 -1
- {clerk_sdk-0.3.0.dist-info → clerk_sdk-0.3.2.dist-info}/RECORD +7 -7
- {clerk_sdk-0.3.0.dist-info → clerk_sdk-0.3.2.dist-info}/WHEEL +0 -0
- {clerk_sdk-0.3.0.dist-info → clerk_sdk-0.3.2.dist-info}/licenses/LICENSE +0 -0
- {clerk_sdk-0.3.0.dist-info → clerk_sdk-0.3.2.dist-info}/top_level.txt +0 -0
|
@@ -40,7 +40,7 @@ def clerk_code():
|
|
|
40
40
|
except Exception as e:
|
|
41
41
|
# parse no standard errors into the standard Application Error
|
|
42
42
|
output = ApplicationException(
|
|
43
|
-
|
|
43
|
+
type_=str(type(e)), message=str(e), traceback=traceback.format_exc()
|
|
44
44
|
)
|
|
45
45
|
|
|
46
46
|
# 3. write to output.pkl
|
clerk/exceptions/exceptions.py
CHANGED
|
@@ -2,12 +2,39 @@ from typing import Optional
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class AppBaseException(Exception):
|
|
5
|
-
def __init__(
|
|
5
|
+
def __init__(
|
|
6
|
+
self,
|
|
7
|
+
*args,
|
|
8
|
+
type_: Optional[str] = None,
|
|
9
|
+
message: Optional[str] = None,
|
|
10
|
+
traceback: Optional[str] = None,
|
|
11
|
+
):
|
|
12
|
+
# If called with positional args (e.g., during unpickling or raise("msg")),
|
|
13
|
+
# treat args[0] as the message.
|
|
14
|
+
if args and message is None:
|
|
15
|
+
message = args[0]
|
|
16
|
+
|
|
17
|
+
# Always call base Exception with just the message so .args == (message,)
|
|
6
18
|
super().__init__(message)
|
|
7
|
-
|
|
8
|
-
|
|
19
|
+
|
|
20
|
+
# Store structured fields
|
|
21
|
+
self.type = type_ or self.__class__.__name__
|
|
22
|
+
self.message = message or ""
|
|
9
23
|
self.traceback = traceback
|
|
10
24
|
|
|
25
|
+
# (Optional) make pickling round-trip the extra fields explicitly
|
|
26
|
+
def __reduce__(self):
|
|
27
|
+
# Reconstruct with message-only (what Exception expects) and restore extras via state
|
|
28
|
+
return (
|
|
29
|
+
self.__class__,
|
|
30
|
+
(self.message,),
|
|
31
|
+
{"type": self.type, "traceback": self.traceback},
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
def __setstate__(self, state):
|
|
35
|
+
for k, v in state.items():
|
|
36
|
+
setattr(self, k, v)
|
|
37
|
+
|
|
11
38
|
|
|
12
39
|
class ApplicationException(AppBaseException):
|
|
13
40
|
pass
|
|
@@ -3,9 +3,9 @@ clerk/base.py,sha256=Ayb2zCQr8fqKZM_Qh3nVxVJOQkkYt-eD5VtpPXd1TLs,2669
|
|
|
3
3
|
clerk/client.py,sha256=6nWWWjGB7a6FNUWsZRM-IoBb_mshRi6g5KX8meMiJ2E,576
|
|
4
4
|
clerk/decorator/__init__.py,sha256=4VCGOFNq7pA7iJS410V_R9eWfjxP7mwxwa4thwaUTf8,39
|
|
5
5
|
clerk/decorator/models.py,sha256=JWFOJuUh3F40iOL0aoNgUC9GRHU3Fcq3GOjSXA7Gwng,394
|
|
6
|
-
clerk/decorator/task_decorator.py,sha256=
|
|
6
|
+
clerk/decorator/task_decorator.py,sha256=ZHBNaG5zlRZ6_OaVFgVhBaowCc0Q8YgdjUPSnmOL7r4,2454
|
|
7
7
|
clerk/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
clerk/exceptions/exceptions.py,sha256=
|
|
8
|
+
clerk/exceptions/exceptions.py,sha256=aIrmID62HoQo0pLErfX9NR2nopTyf53BpOu4gtqAy-A,1201
|
|
9
9
|
clerk/exceptions/remote_device.py,sha256=R0Vfmk8ejibEFeV29A8Vqst2YA6yxdqEX9lP5wWubgM,134
|
|
10
10
|
clerk/gui_automation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
11
|
clerk/gui_automation/client.py,sha256=LqrUQtC-4pjUJYDDn_s3t073K066j_p0vf4kXLChBc0,4891
|
|
@@ -46,8 +46,8 @@ clerk/models/ui_operator.py,sha256=mKTJUFZgv7PeEt5oys28HVZxHOJsofmRQOcRpqj0dbU,2
|
|
|
46
46
|
clerk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
clerk/utils/logger.py,sha256=vHbp-lUK3W3c5fhyPsp05p9LGyDHj95v8XM_XQ_FlLc,3691
|
|
48
48
|
clerk/utils/save_artifact.py,sha256=94aYkYNVGcSUaSWZmdjiY6Oc-3yCKb2XWCZ56IAXQqk,1158
|
|
49
|
-
clerk_sdk-0.3.
|
|
50
|
-
clerk_sdk-0.3.
|
|
51
|
-
clerk_sdk-0.3.
|
|
52
|
-
clerk_sdk-0.3.
|
|
53
|
-
clerk_sdk-0.3.
|
|
49
|
+
clerk_sdk-0.3.2.dist-info/licenses/LICENSE,sha256=GTVQl3vH6ht70wJXKC0yMT8CmXKHxv_YyO_utAgm7EA,1065
|
|
50
|
+
clerk_sdk-0.3.2.dist-info/METADATA,sha256=BnwmGLHnRc6KnJ-YHOkCSLurPG6DjGvrRJ1wUTOg_JU,3508
|
|
51
|
+
clerk_sdk-0.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
52
|
+
clerk_sdk-0.3.2.dist-info/top_level.txt,sha256=99eQiU6d05_-f41tmSFanfI_SIJeAdh7u9m3LNSfcv4,6
|
|
53
|
+
clerk_sdk-0.3.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|