Skip to content

Input binding returns null when blob does not exist #67

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

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

Hazhzeng
Copy link
Contributor

@Hazhzeng Hazhzeng commented Aug 18, 2020

Background

Resolves #39
Resolves Azure/azure-functions-python-worker#670
Original PR: #40

When a blob does not exist, the blob input binding will raise an exception. Asked by the issues mentioned above, we should simply return a None object in the input binding since it is not a customer error.

Fixes

  1. The Blob input binding will now return None if the blob does not exist
  2. Add unit testing for blob trigger

Copy link
Member

@vrdmr vrdmr left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢

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.

Improve exception management when Blob does not exist Allow InputStream parameter to pass null if the blob doesn't exist
2 participants