changeset 562:55cae4f27e75

catch timeout
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Jun 2015 00:13:26 +0800
parents 54ef7f84487d
children dd809548424c a3e9c97c448b
files py/configwaiter.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/py/configwaiter.py	Wed Jun 10 00:10:08 2015 +0800
+++ b/py/configwaiter.py	Wed Jun 10 00:13:26 2015 +0800
@@ -51,6 +51,9 @@
                 # longer timeout to avoid spinning
                 yield from asyncio.sleep(30)
 
+        except asyncio.TimeoutError:
+            D("configwaiter http timed out")
+            pass
         except Exception as e:
             EX("Error watching config: %s" % str(e))