Skip to content

Commit

Permalink
fixed raising excepiton code in oss backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lins05 committed Jun 18, 2015
1 parent f5db1e8 commit f6a7e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions seafobj/backends/alioss.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def __init__(self, conf):
def read_object_content(self, obj_id):
res = self.oss.get_object(self.conf.bucket_name, obj_id)
if res.status != httplib.OK:
raise GetObjectError("Failed to get object %s from bucket %s: %s %s",
obj_id, self.conf.bucket_name, res.status, res.reason)
raise GetObjectError("Failed to get object %s from bucket %s: %s %s" % (
obj_id, self.conf.bucket_name, res.status, res.reason))
return res.read()

class SeafObjStoreOSS(AbstractObjStore):
Expand Down

0 comments on commit f6a7e12

Please sign in to comment.