diff py/uploader.py @ 256:6d06795aefbb

merge
author Matt Johnston <matt@ucc.asn.au>
date Mon, 08 Jun 2015 22:33:04 +0800
parents 0a1b642e3086 ffe25107d520
children 26eee8591f61
line wrap: on
line diff
--- a/py/uploader.py	Mon Jun 08 22:32:34 2015 +0800
+++ b/py/uploader.py	Mon Jun 08 22:33:04 2015 +0800
@@ -59,8 +59,8 @@
 
     @asyncio.coroutine
     def do(self):
-        readings = self.server.take_readings()
         try:
+            readings = self.server.take_readings()
             tosend = self.get_tosend(readings)
             nreadings = len(readings)
             yield from self.send(tosend)