Catching the exception dns.exception.Timeout fix #7

This commit is contained in:
Starow 2014-08-11 09:18:55 +02:00
parent 0fe6c4d805
commit a5c1d59d29

View file

@ -47,6 +47,7 @@ def main():
email_regex = "[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}"
while True:
try:
if message != None:
channel, filename, word, score = message.split()
@ -76,6 +77,9 @@ def main():
time.sleep(10)
message = Sub.get_msg_from_queue(r_serv)
except dns.exception.Timeout:
print "dns.exception.Timeout"
pass
if __name__ == "__main__":