Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
use older exception syntax to support python 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bburns committed Dec 17, 2010
1 parent d7eb541 commit 7179847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def __output_results(self, cursor, out, batch_size=15):
except AutoReconnect:
out(json.dumps({"ok" : 0, "errmsg" : "auto reconnecting, please try again"}))
return
except OperationFailure as of:
except OperationFailure, of:
out(json.dumps({"ok" : 0, "errmsg" : "%s" % of}))
return
except StopIteration:
Expand Down

0 comments on commit 7179847

Please sign in to comment.