timeout for request to nullsleep
This commit is contained in:
parent
b418f316af
commit
5720a86b57
|
@ -56,7 +56,7 @@ logging.basicConfig(filename='/users/n3parikh/office/log',
|
|||
logger = logging.getLogger('office')
|
||||
|
||||
try:
|
||||
r = requests.get('http://nullsleep:5000')
|
||||
r = requests.get('http://nullsleep:5000', timeout=1)
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
writeUnknownHTML()
|
||||
|
|
Loading…
Reference in New Issue