Resolver: Raise correct error

This commit is contained in:
Philipp Hörist 2017-08-23 23:29:38 +02:00
parent 00d091dd54
commit 28045e9d36
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class GioResolver(CommonResolver):
if type_ == 'txt':
# TXT record resolution isn't used anywhere at the moment so
# implementing it here isn't urgent
raise NotImplemented("Gio resolver does not currently implement TXT records")
raise NotImplementedError("Gio resolver does not currently implement TXT records")
else:
callback = functools.partial(self._on_ready_srv, host)
type_ = Gio.ResolverRecordType.SRV