Skip to content

Commit 0a891fe

Browse files
committed
improved messaging if Python model can't be processed
1 parent a2a851d commit 0a891fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sasctl/tasks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ def get_version(x):
228228
except ValueError:
229229
# PyMAS creation failed, most likely because input data wasn't
230230
# provided
231+
logger.exception('Unable to inspect model %s', model)
232+
231233
warnings.warn('Unable to determine input/output variables. '
232-
' Model variables will not be specified.')
234+
' Model variables will not be specified and some '
235+
'model functionality may not be available.')
233236
else:
234237
# Otherwise, the model better be a dictionary of metadata
235238
assert isinstance(model, dict)

0 commit comments

Comments
 (0)