File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ Unreleased
3
3
----------
4
4
** Improvements**
5
5
- Added ` create_model_version ` and ` list_model_versions ` to ` model_repository `
6
+ - Added an explicit ` ValueError ` when attempting to register an ASTORE that can't be downloaded.
6
7
7
8
** Bugfixes**
8
9
- Fixed an issue where ` model_repository ` did not find models by name once pagination limits were reached.
Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ def create_package_from_astore(table):
28
28
sess .loadactionset ('astore' )
29
29
30
30
result = sess .astore .describe (rstore = table , epcode = True )
31
- astore = sess .astore .download (rstore = table ).blob
31
+ astore = sess .astore .download (rstore = table )
32
+ if not hasattr (astore , "blob" ):
33
+ raise ValueError ("Failed to download binary data for ASTORE '%s'."
34
+ % astore )
35
+ astore = astore .blob
36
+
32
37
astore = bytes (astore ) # Convert from SWAT blob type
33
38
34
39
# Raise error if describe action fails
You can’t perform that action at this time.
0 commit comments