changeset 263:654caee52c83

catch timeout
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Jun 2015 00:13:26 +0800
parents ef3a75128116
children 205809a8872f 9be8464e4295
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))