We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5637988 commit b41c116Copy full SHA for b41c116
1 file changed
openleadr/client.py
@@ -652,9 +652,9 @@ async def cancel_opt(self, opt_id):
652
"""
653
654
# Check if this opt exists
655
- report = utils.find_by(
656
- self.reports, 'opt_id', opt_id)
657
- if not report:
+ opt = utils.find_by(
+ self.opts, 'opt_id', opt_id)
+ if not opt:
658
logger.error(f"A non-existant opt with opt_id "
659
f"{opt_id} was requested for cancellation.")
660
return False
0 commit comments