Skip to content

Commit 6a4e48a

Browse files
committed
first draft
1 parent e5f4d30 commit 6a4e48a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11

22
Unreleased
33
----------
4-
5-
-
4+
**Changed**
5+
- Exceptions moved from `sasctl.core` to `sasctl.exceptions`
6+
- `SWATCASActionError` raised if ASTORE cannot be saved during model registration.
67

78

89
v1.0.0 (2019-07-24)

src/sasctl/utils/astore.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ def create_package_from_astore(table):
4343
astore_filename = '_' + uuid.uuid4().hex[:25].upper()
4444

4545
# Copy the ASTORE table to the ModelStore.
46-
table.save(name=astore_filename, caslib='ModelStore', replace=True)
46+
# Raise an error if the action fails
47+
with swat.options(exception_on_severity=2):
48+
table.save(name=astore_filename, caslib='ModelStore', replace=True)
4749

4850
file_metadata = [{'role': 'analyticStore', 'name': ''},
4951
{'role': 'score', 'name': 'dmcas_packagescorecode.sas'}]

0 commit comments

Comments
 (0)