def image_with_id(self, image_id):
        try:
            metadata = self._from_mongo_meta(self.collection.find_one( { "_id": image_id } ))
        except Exception as e:
            self.log.debug('Exception caught: %s' % e)
            return None

        if not metadata:
            raise ImageFactoryException("Unable to retrieve object metadata in Mongo for ID (%s)" % (image_id))

        return self._image_from_metadata(metadata)
try_stmt : TRY COLON suite except_clauses ELSE COLON suite
dataset/ETHPy150Open redhat-imaging/imagefactory/imgfac/MongoPersistentImageManager.py/MongoPersistentImageManager.image_with_id--crossover with--dataset/ETHPy150Open nucleic/enaml/enaml/core/parser.py/p_try_stmt3