Mercurial > templog
comparison py/uploader.py @ 146:3b4277aaed3c
update web to handle new style params
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 05 Dec 2012 22:44:13 +0800 |
parents | 6517ddee3187 |
children | 256505f98c4d |
comparison
equal
deleted
inserted
replaced
145:6517ddee3187 | 146:3b4277aaed3c |
---|---|
43 raise Exception("Server returned %s" % result) | 43 raise Exception("Server returned %s" % result) |
44 | 44 |
45 def do(): | 45 def do(): |
46 readings = self.server.take_readings() | 46 readings = self.server.take_readings() |
47 try: | 47 try: |
48 tosend = self.get_to_send(readings) | 48 tosend = self.get_tosend(readings) |
49 readings = None | 49 readings = None |
50 self.send(tosend) | 50 self.send(tosend) |
51 except Exception, e: | 51 except Exception, e: |
52 EX"Error in uploader: %s" % str(e)) | 52 EX"Error in uploader: %s" % str(e)) |
53 finally: | 53 finally: |