def graph(self, uuid, locked=None, **kwargs):
if locked is None:
with self.lock.shared(uuid) as locked:
g = self.graph(uuid, locked=locked, **kwargs)
return g
kwargs.update(self.creds)
try:
return self.collection.graph(uuid, **kwargs)
except (IOError, OSError) as e:
if e.errno is errno.EPERM:
raise HTTPError(403, str(e))
elif e.errno is errno.ENOSPC:
raise HTTPError(507, str(e))
raise HTTPError(404, "Backend graph for %s is inaccessible: %s" % (uuid, str(e)))
评论列表
文章目录