comparison py/configwaiter.py @ 263:654caee52c83

catch timeout
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Jun 2015 00:13:26 +0800
parents 6fb9d5f654ff
children 78c542f03030
comparison
equal deleted inserted replaced
262:ef3a75128116 263:654caee52c83
49 pass 49 pass
50 else: 50 else:
51 # longer timeout to avoid spinning 51 # longer timeout to avoid spinning
52 yield from asyncio.sleep(30) 52 yield from asyncio.sleep(30)
53 53
54 except asyncio.TimeoutError:
55 D("configwaiter http timed out")
56 pass
54 except Exception as e: 57 except Exception as e:
55 EX("Error watching config: %s" % str(e)) 58 EX("Error watching config: %s" % str(e))
56 59
57 60
58 61