I would say do the try/except only around this single line.
Catch only KeyError, not a bare Exception.
In the except clause simply set `ob = None`. Then the existing log line can pick it up.
Then this change seems fine to me.