Skip to content

array_contains throws exception if array in colelction is none #66

@tommiesster

Description

@tommiesster

....\venv\Lib\site-packages\parameters_validation\validate_parameters_decorator.py:37: in wrapper
return f(*args, **kwargs)
....\svc\db\db.py:94: in get_tails_for_user
docs = tails_ref.stream()
....\venv\Lib\site-packages\mockfirestore\query.py:31: in stream
doc_snapshots = [doc_snapshot for doc_snapshot in doc_snapshots
....\venv\Lib\site-packages\mockfirestore\query.py:32: in
if compare(doc_snapshot._get_by_field_path(field), value)]


x = None, y = 'red'

return lambda x, y: y in x
E TypeError: argument of type 'NoneType' is not iterable

....\venv\Lib\site-packages\mockfirestore\query.py:137: TypeError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions