Browse files

use older exception syntax to support python 2.5

  • Loading branch information...
1 parent d7eb541 commit 71798475d2899dc78fcdac1b024c7b7f28a18992 bburns committed Dec 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 handlers.py
View
2 handlers.py
@@ -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:

0 comments on commit 7179847

Please sign in to comment.