Skip to content

Commit b41c116

Browse files
committed
rename variables
1 parent 5637988 commit b41c116

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

openleadr/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,9 @@ async def cancel_opt(self, opt_id):
652652
"""
653653

654654
# Check if this opt exists
655-
report = utils.find_by(
656-
self.reports, 'opt_id', opt_id)
657-
if not report:
655+
opt = utils.find_by(
656+
self.opts, 'opt_id', opt_id)
657+
if not opt:
658658
logger.error(f"A non-existant opt with opt_id "
659659
f"{opt_id} was requested for cancellation.")
660660
return False

0 commit comments

Comments
 (0)