Skip to content
Snippets Groups Projects
Commit dc7d34e4 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix previous commit: missing import and typo

parent 6b2a8161
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,7 @@ import re ...@@ -23,6 +23,7 @@ import re
import logging import logging
log = logging.getLogger('gajim.c.resolver') log = logging.getLogger('gajim.c.resolver')
from common import helpers
from xmpp.idlequeue import IdleCommand from xmpp.idlequeue import IdleCommand
# it is good to check validity of arguments, when calling system commands # it is good to check validity of arguments, when calling system commands
...@@ -238,7 +239,7 @@ class NSLookupResolver(CommonResolver): ...@@ -238,7 +239,7 @@ class NSLookupResolver(CommonResolver):
elif helpers.decode_string(line).startswith(ufqdn): elif helpers.decode_string(line).startswith(ufqdn):
line = helpers.decode_string(line) line = helpers.decode_string(line)
domain = ufqdn # For nslookup 9.6 domain = ufqdn # For nslookup 9.6
if domain if domain:
rest = line[len(domain):].split('=') rest = line[len(domain):].split('=')
if len(rest) != 2: if len(rest) != 2:
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment