clerk-sdk 0.1.6__tar.gz → 0.1.7__tar.gz
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_sdk-0.1.6/clerk_sdk.egg-info → clerk_sdk-0.1.7}/PKG-INFO +1 -1
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/decorator/task_decorator.py +6 -2
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7/clerk_sdk.egg-info}/PKG-INFO +1 -1
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/setup.py +1 -1
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/LICENSE +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/MANIFEST.in +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/README.md +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/__init__.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/client.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/decorator/__init__.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/decorator/models.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/models/__init__.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/models/document.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/models/document_statuses.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/models/file.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk/models/response_model.py +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk_sdk.egg-info/SOURCES.txt +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk_sdk.egg-info/dependency_links.txt +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk_sdk.egg-info/requires.txt +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/clerk_sdk.egg-info/top_level.txt +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/pyproject.toml +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/requirements.txt +0 -0
- {clerk_sdk-0.1.6 → clerk_sdk-0.1.7}/setup.cfg +0 -0
|
@@ -36,11 +36,15 @@ def clerk_code():
|
|
|
36
36
|
except Exception as e:
|
|
37
37
|
output = e
|
|
38
38
|
|
|
39
|
-
# 3.
|
|
39
|
+
# 3. write to output.pkl
|
|
40
40
|
try:
|
|
41
41
|
if use_pickle:
|
|
42
42
|
with open(output_pkl, "wb") as f:
|
|
43
|
-
|
|
43
|
+
if isinstance(e, Exception):
|
|
44
|
+
pickle.dump(output, f)
|
|
45
|
+
else:
|
|
46
|
+
pickle.dump(output.model_dump(mode="json"), f)
|
|
47
|
+
|
|
44
48
|
except Exception as e:
|
|
45
49
|
raise RuntimeError(f"Failed to write output pickle: {e}") from e
|
|
46
50
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|