Skip to content
This repository
Browse code

Golf

  • Loading branch information...
commit 5e8e8043cc56f5c3574a088e25437b4544e44e16 1 parent 1373f68
Charles Leifer authored October 02, 2012

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  peewee.py
3  peewee.py
@@ -1288,8 +1288,7 @@ def exists(self):
1288 1288
     def get(self):
1289 1289
         clone = self.paginate(1, 1)
1290 1290
         try:
1291  
-            obj = clone.execute().next()
1292  
-            return obj
  1291
+            return clone.execute().next()
1293 1292
         except StopIteration:
1294 1293
             raise self.model_class.DoesNotExist('instance matching query does not exist:\nSQL: %s\nPARAMS: %s' % (
1295 1294
                 self.sql(self.database.get_compiler())

0 notes on commit 5e8e804

Please sign in to comment.
Something went wrong with that request. Please try again.