Mercurial > templog
comparison py/uploader.py @ 445:5b9dc87c988f
update web to handle new style params
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 05 Dec 2012 22:44:13 +0800 |
parents | c5629d79b4ac |
children | 256505f98c4d |
comparison
equal
deleted
inserted
replaced
444:c5629d79b4ac | 445:5b9dc87c988f |
---|---|
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: |