This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
object of type 'DjangoClient' has no len() #1025
Open
Description
Getting this on AWS Lambda with Python 3.6 runtime:
Traceback (most recent call last):
File "/var/task/hsreplaynet/utils/instrumentation.py", line 112, in wrapper
if sentry:
File "/var/task/raven/contrib/django/models.py", line 69, in <lambda>
__len__ = lambda x: len(get_client())
TypeError: object of type 'DjangoClient' has no len()
That if sentry
is doing a bool() on a raven.contrib.django.raven_compat.models.client
object. This works fine on 2.7, not on 3.6 which calls __len__
when defined (and it is defined here).