Skip to content

Commit

Permalink
Update script in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
svenja11 committed Apr 30, 2024
1 parent 806b59c commit b193452
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tutorials/cloudflare-website-protect/01.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def get_cloudflare_ips(version):
if response.status_code == 200:
return response.text.strip().split('\n')
else:
print("Failed to retrieve Cloudflare IP ranges")
return []
raise Exception("Failed to retrieve Cloudflare IP ranges", response)

def whitelist_ips_in_hetzner(ip_ranges):
headers = {
Expand Down

0 comments on commit b193452

Please sign in to comment.