Browse files

Golf

  • Loading branch information...
1 parent 1373f68 commit 5e8e8043cc56f5c3574a088e25437b4544e44e16 @coleifer committed Oct 2, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 peewee.py
View
3 peewee.py
@@ -1288,8 +1288,7 @@ def exists(self):
def get(self):
clone = self.paginate(1, 1)
try:
- obj = clone.execute().next()
- return obj
+ return clone.execute().next()
except StopIteration:
raise self.model_class.DoesNotExist('instance matching query does not exist:\nSQL: %s\nPARAMS: %s' % (
self.sql(self.database.get_compiler())

0 comments on commit 5e8e804

Please sign in to comment.