mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
AxfrSource python3
This commit is contained in:
@@ -15,6 +15,7 @@ from dns.exception import DNSException
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from os import listdir
|
from os import listdir
|
||||||
from os.path import join
|
from os.path import join
|
||||||
|
from six import text_type
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ..record import Record
|
from ..record import Record
|
||||||
@@ -179,8 +180,7 @@ class ZoneFileSourceNotFound(ZoneFileSourceException):
|
|||||||
class ZoneFileSourceLoadFailure(ZoneFileSourceException):
|
class ZoneFileSourceLoadFailure(ZoneFileSourceException):
|
||||||
|
|
||||||
def __init__(self, error):
|
def __init__(self, error):
|
||||||
super(ZoneFileSourceLoadFailure, self).__init__(
|
super(ZoneFileSourceLoadFailure, self).__init__(text_type(error))
|
||||||
error.message)
|
|
||||||
|
|
||||||
|
|
||||||
class ZoneFileSource(AxfrBaseSource):
|
class ZoneFileSource(AxfrBaseSource):
|
||||||
|
|||||||
Reference in New Issue
Block a user