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': if type_ == 'txt':
# TXT record resolution isn't used anywhere at the moment so # TXT record resolution isn't used anywhere at the moment so
# implementing it here isn't urgent # 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: else:
callback = functools.partial(self._on_ready_srv, host) callback = functools.partial(self._on_ready_srv, host)
type_ = Gio.ResolverRecordType.SRV type_ = Gio.ResolverRecordType.SRV