This happens as a result of using a try/except block and to call get_object(), which raises an error if the object doesn't exist yet. This is clearly contrary to the purpose of the function. We need to check to the objects dict keys and only call get_object() if the key exists.
This happens as a result of using a
try/except
block and to callget_object()
, which raises an error if the object doesn't exist yet. This is clearly contrary to the purpose of the function. We need to check to theobjects
dict keys and only callget_object()
if the key exists.