aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-01 16:48:03 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-01 16:48:03 -0500
commitf114d9add0610c025110681c09a2f2eb4acedfa5 (patch)
tree4eb89b1ee87f00d2ae4a7304b3e3eb4ed3c23904 /libbe/storage
parent0679e0b1fd941d6aefef146fb4289472edee9b62 (diff)
downloadbugseverywhere-f114d9add0610c025110681c09a2f2eb4acedfa5.tar.gz
Fixed commit handling in commands.serve and storage.http
Diffstat (limited to 'libbe/storage')
-rw-r--r--libbe/storage/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbe/storage/http.py b/libbe/storage/http.py
index 98a824d..78fe893 100644
--- a/libbe/storage/http.py
+++ b/libbe/storage/http.py
@@ -191,7 +191,7 @@ class HTTP (base.VersionedStorage):
except InvalidURL, e:
if not (hasattr(e.error, 'code') and e.error.code in HTTP_VALID):
raise
- if self.e.error.code == HTTP_USER_ERROR:
+ if e.error.code == HTTP_USER_ERROR:
raise base.EmptyCommit
raise base.InvalidID(id)
return page.rstrip('\n')
@@ -222,7 +222,7 @@ class HTTP (base.VersionedStorage):
except InvalidURL, e:
if not (hasattr(e.error, 'code') and e.error.code in HTTP_VALID):
raise
- if self.e.error.code == HTTP_USER_ERROR:
+ if e.error.code == HTTP_USER_ERROR:
raise base.InvalidRevision(index)
raise base.InvalidID(id)
return page.rstrip('\n')