Skip to content

Commit 37ae4ec

Browse files
committed
fix and bumped version
1 parent 05d2a2b commit 37ae4ec

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.9.2
2+
=====
3+
.first() bug fix.
4+
15
0.9.1
26
=====
37
Auto migration fixes, and .first() method now returns None is no match is

piccolo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "0.9.1"
1+
__VERSION__ = "0.9.2"

piccolo/query/methods/select.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def offset(self, number: int) -> Select:
7979
async def response_handler(self, response):
8080
if self.limit_delegate._first:
8181
if len(response) == 0:
82-
raise ValueError("No results found")
82+
return None
8383
else:
8484
return response[0]
8585
else:

0 commit comments

Comments
 (0)