Skip to content

Commit daa85d2

Browse files
committed
allow nill data for generic bindings
1 parent f269c09 commit daa85d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

azure_functions_worker/bindings/generic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def encode(cls, obj: Any, *,
3434

3535
@classmethod
3636
def decode(cls, data: datumdef.Datum, *, trigger_metadata) -> typing.Any:
37+
if data is None:
38+
return None
3739
data_type = data.type
3840

3941
if data_type == 'string':

0 commit comments

Comments
 (0)