airbrake/pybrake

get_full_name optional on AbstractBaseUser

Opened this issue · 1 comments

user_info = dict(username=user.get_username(), name=user.get_full_name())
-> references get_full_name(), but per https://docs.djangoproject.com/en/4.2/topics/auth/customizing/ get_full_name is optional. Either update the documentation for Airbrake to make it clear that this method must be implemented, or better, update this line to check for the method and workaround cases when get_full_name is not implemented (e.g. teams with custom user models.)

For context, if this method is missing Airbrake throws an error when trying to log errors seemingly preventing it from actually logging to Airbrake.