Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Golf

  • Loading branch information...
commit 5e8e8043cc56f5c3574a088e25437b4544e44e16 1 parent 1373f68
@coleifer authored
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())
Please sign in to comment.
Something went wrong with that request. Please try again.