Return not found on error jsondoc

This commit is contained in:
2012-01-21 23:54:06 +00:00
parent 732ed2c2f1
commit 7b7e4a5e33

View File

@@ -40,6 +40,9 @@ class RedditAccount(models.Model):
except:
raise self.DoesNotExist
if 'error' in jsondoc:
raise self.DoesNotExist
data = jsondoc['data']
self.link_karma = int(data['link_karma'])