Skip to content

Commit

Permalink
favicon.ico
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakyHulk committed Mar 14, 2024
1 parent ef0ec7a commit 28ea01b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main():
zone = request.args.get('zone')
ipv4 = request.args.get('ipv4')
ipv6 = request.args.get('ipv6')
cf = CloudFlare.CloudFlare(token=token)
cf = CloudFlare(token=token)

if not token:
print('Missing token URL parameter.', file=sys.stderr)
Expand Down Expand Up @@ -69,7 +69,7 @@ def main():
cf.zones.dns_records.put(zones[0]['id'], aaaa_record[0]['id'], data={
'name': aaaa_record[0]['name'], 'type': 'AAAA', 'content': ipv6, 'proxied': aaaa_record[0]['proxied'],
'ttl': aaaa_record[0]['ttl']})
except CloudFlare.exceptions.CloudFlareAPIError as e:
except exceptions.CloudFlareAPIError as e:
print(str(e), file=sys.stderr)
return jsonify({'status': 'error', 'message': str(e)}), 500

Expand Down

0 comments on commit 28ea01b

Please sign in to comment.