Skip to content

Commit 7bfab09

Browse files
authored
Update ngrokwebhook.py
quick fix for empty webhook returned lists
1 parent 4b2dc8a commit 7bfab09

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/ngrokwebhook.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def findwebhookidbyname(api, webhookname):
1919
for wh in webhooks:
2020
if wh.name == webhookname:
2121
return wh.id
22-
else:
23-
return "not found"
22+
return "not found"
2423

2524
#Webhook attributes
2625
webhookname="testwebhook"

0 commit comments

Comments
 (0)