Catching the exception dns.exception.Timeout fix #7

pull/8/head
Starow 2014-08-11 09:18:55 +02:00
parent 0fe6c4d805
commit a5c1d59d29
1 changed files with 27 additions and 23 deletions

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__":