The important part is in what context you use this field. If you access a page through /profile/[ID], I would display a page not found by the user. If you do something like this
ID = context["user"].id
Object.get(field = ID)
I would not try to catch the error separately.
In general, I save every error that cannot be caused by normal user behavior. Then I can look into my error log and immediately see where my site is causing crashes or hackers tried to find a security hole.
Then I fix this undefined behavior so that the error log is as empty as possible.
source
share