Skip to content

Commit

Permalink
bug fix #254
Browse files Browse the repository at this point in the history
  • Loading branch information
ko2sec committed Jul 5, 2022
1 parent ae9b9bc commit 5746f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def one(self, default=None, as_dict=False, as_ordereddict=False):

# Ensure that we don't have more than one row.
try:
self[1]
return self[1]
except IndexError:
return self.first(default=default, as_dict=as_dict,
as_ordereddict=as_ordereddict)
Expand Down

0 comments on commit 5746f53

Please sign in to comment.