def get_object(context, key):
    """ Get object by key from enabled depots """
    for depot in context.depots["object"].values():
        try:
            value = depot.get_object(key)
            if value is not None:
                return value
        except:  # pylint: disable=W0702
            pass
    return None