Skip to content

Commit

Permalink
Account for execute result being None (AmbitionEng#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto authored Sep 8, 2024
1 parent 2dc910e commit aa34313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgtrigger/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _can_inject_variable(cursor, sql):

def _execute_wrapper(execute_result):
if utils.psycopg_maj_version == 3:
while execute_result.nextset():
while execute_result is not None and execute_result.nextset():
pass
return execute_result

Expand Down

0 comments on commit aa34313

Please sign in to comment.