Skip to content

Commit

Permalink
Update QueryBuilder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarriqTheTechie authored Feb 1, 2023
1 parent c813103 commit 09e91a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/masoniteorm/query/QueryBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ def find(self, record_id):

return self.where(self._model.get_primary_key(), record_id).first()

def find_or(self, record_id: int, callback: Callable, args: tuple | None = None):
def find_or(self, record_id: int, callback: Callable, args=None):
"""Finds a row by the primary key ID (Requires a model) or raise a ModelNotFound exception.
Arguments:
Expand Down

0 comments on commit 09e91a9

Please sign in to comment.