Skip to content

Commit 0bcea13

Browse files
author
Keerthan Mala
committed
fix(scale): return error message in proper format
1 parent 9749a29 commit 0bcea13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/models/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def scale(self, user, structure): # noqa
317317
for target, count in structure.copy().items():
318318
structure[target] = int(count)
319319
validate_app_structure(structure)
320-
except (TypeError, ValueError) as e:
320+
except (TypeError, ValidationError) as e:
321321
raise DeisException('Invalid scaling format: {}'.format(e))
322322

323323
# test for available process types

0 commit comments

Comments
 (0)