You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to anonymise TextFields, the anonymiser crashes with:
File "/app/.venv/lib/python3.10/site-packages/birdbath/management/commands/run_birdbath.py", line 49, in handle
raise Exception(errors)
Exception: [TypeError("unsupported operand type(s) for +: 'NoneType' and 'int'")]
Reproducing
Create a new model with a TextField and an anonymiser targeting it:
from django.db import models
from birdbath.processors import BaseModelAnonymiser
class MyModel(models.Model):
text_field = models.TextField()
class MyAnonymiser(BaseModelAnonymiser):
model = MyModel
anonymise_fields = ["text_field"]
And then run ./manage.py run_birdbath to see the error.
The text was updated successfully, but these errors were encountered:
When trying to anonymise
TextField
s, the anonymiser crashes with:Reproducing
Create a new model with a
TextField
and an anonymiser targeting it:And then run
./manage.py run_birdbath
to see the error.The text was updated successfully, but these errors were encountered: