comparison py/configwaiter.py @ 562:55cae4f27e75

catch timeout
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Jun 2015 00:13:26 +0800
parents 830ee5663703
children 78c542f03030
comparison
equal deleted inserted replaced
561:54ef7f84487d 562:55cae4f27e75
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