Add small timeout

This commit is contained in:
alesapin 2020-04-10 17:03:42 +03:00
parent 88657cfbe1
commit 27eaea184a

View File

@ -2,6 +2,7 @@
from __future__ import print_function from __future__ import print_function
import csv import csv
import sys import sys
import time
import tempfile import tempfile
import threading import threading
import os, urllib import os, urllib
@ -187,6 +188,7 @@ if __name__ == "__main__":
break break
except Exception as ex: except Exception as ex:
exception_text = str(ex) exception_text = str(ex)
time.sleep(0.1)
if exception_text: if exception_text:
print("Exception: {}".format(exception_text), file=sys.stderr) print("Exception: {}".format(exception_text), file=sys.stderr)