File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
2
2
Unreleased
3
3
----------
4
-
5
- -
4
+ ** Changed**
5
+ - Exceptions moved from ` sasctl.core ` to ` sasctl.exceptions `
6
+ - ` SWATCASActionError ` raised if ASTORE cannot be saved during model registration.
6
7
7
8
8
9
v1.0.0 (2019-07-24)
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ def create_package_from_astore(table):
43
43
astore_filename = '_' + uuid .uuid4 ().hex [:25 ].upper ()
44
44
45
45
# 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 )
47
49
48
50
file_metadata = [{'role' : 'analyticStore' , 'name' : '' },
49
51
{'role' : 'score' , 'name' : 'dmcas_packagescorecode.sas' }]
You can’t perform that action at this time.
0 commit comments