Skip to content

Commit

Permalink
change reused variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Dec 21, 2023
1 parent 74358d7 commit 728ca8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions netguard/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ def send_notification():
response = sg.client.user.scheduled_sends.get()

for item in json.loads(response.body):
batch_id = item['batch_id']

try:
response = sg.client.user.scheduled_sends._(batch_id).delete()
response = sg.client.user.scheduled_sends._(item['batch_id']).delete()
except Exception as e:
pass

Expand Down

0 comments on commit 728ca8b

Please sign in to comment.