Azure / azure-functions-python-library

Azure Functions Python SDK
MIT License
154 stars 67 forks source link

Input binding returns null when blob does not exist #67

Closed Hazhzeng closed 4 years ago

Hazhzeng commented 4 years ago

Background

Resolves https://github.com/Azure/azure-functions-python-library/issues/39 Resolves https://github.com/Azure/azure-functions-python-worker/issues/670 Original PR: https://github.com/Azure/azure-functions-python-library/pull/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