Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOD-3613] Improve client error message for asgi / wsgi apps that have non-nullary functions #2190

Merged
merged 11 commits into from
Sep 5, 2024

Conversation

danielshaar
Copy link
Contributor

Describe your changes

MOD-3613

Clients now get a descriptive error quickly if their asgi / wsgi app has a function with arguments.

Also, fix a small bug that allowed 0 as an argument to various descriptors because of falsey-ness in Python.


@danielshaar danielshaar requested a review from gongy September 4, 2024 17:18
@danielshaar danielshaar marked this pull request as draft September 4, 2024 17:20
@danielshaar danielshaar marked this pull request as ready for review September 4, 2024 19:27
@danielshaar danielshaar marked this pull request as draft September 4, 2024 19:40
@danielshaar danielshaar marked this pull request as ready for review September 4, 2024 20:16
@danielshaar danielshaar requested review from mwaskom and removed request for gongy September 4, 2024 22:09
Copy link
Contributor

@mwaskom mwaskom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clean approach to expanding the check we do here! Left a couple of fussy comments about error message terminology and docstrings but otherwise LGTM, feel free to merge when you see fit.

modal/partial_function.py Outdated Show resolved Hide resolved
modal/partial_function.py Outdated Show resolved Hide resolved
modal/_utils/function_utils.py Outdated Show resolved Hide resolved
@danielshaar danielshaar merged commit 01c3799 into main Sep 5, 2024
22 checks passed
@danielshaar danielshaar deleted the dshaar/asgi-app-not-nullary-error branch September 5, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants