1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Use ProviderException as the base for all provider exception classes

This commit is contained in:
Ross McFarland
2021-08-31 19:39:04 -07:00
parent 0dbb64832e
commit af22e8c9c7
17 changed files with 35 additions and 18 deletions

View File

@@ -13,10 +13,11 @@ from time import sleep
from urllib.parse import urlsplit
from ..record import Record, Update
from . import ProviderException
from .base import BaseProvider
class CloudflareError(Exception):
class CloudflareError(ProviderException):
def __init__(self, data):
try:
message = data['errors'][0]['message']