catch
git-svn-id: https://svn.apache.org/repos/asf/steve/trunk/pysteve@1736798 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/backends/es.py b/lib/backends/es.py
index a783f23..b56b4a4 100644
--- a/lib/backends/es.py
+++ b/lib/backends/es.py
@@ -210,9 +210,12 @@
"Get the UID/email for a voter given the vote key hash"
# First, try the raw hash as an ID
- res = self.es.get(index="steve", doc_type="voters", id=votekey)
- if res:
- return res['_source']['uid']
+ try:
+ res = self.es.get(index="steve", doc_type="voters", id=votekey)
+ if res:
+ return res['_source']['uid']
+ except:
+ pass
# Now, look for it as hash inside the doc
try: