mirror of https://github.com/CIRCL/AIL-framework
Catching the exception dns.exception.Timeout fix #7
parent
0fe6c4d805
commit
a5c1d59d29
|
@ -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__":
|
||||
|
|
Loading…
Reference in New Issue