Skip to content

Commit

Permalink
Strike mention of vestigial class from error message (#2799)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom authored Jan 23, 2025
1 parent 23666e4 commit 37aa93f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modal/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,12 @@ def __init__(
self._name = name
self._description = name

check_sequence(mounts, _Mount, "`mounts=` has to be a list or tuple of Mount objects")
check_sequence(secrets, _Secret, "`secrets=` has to be a list or tuple of Secret objects")
check_sequence(mounts, _Mount, "`mounts=` has to be a list or tuple of `modal.Mount` objects")
check_sequence(secrets, _Secret, "`secrets=` has to be a list or tuple of `modal.Secret` objects")
validate_volumes(volumes)

if image is not None and not isinstance(image, _Image):
raise InvalidError("image has to be a modal Image or AioImage object")
raise InvalidError("`image=` has to be a `modal.Image` object")

self._functions = {}
self._classes = {}
Expand Down

0 comments on commit 37aa93f

Please sign in to comment.