Closed peterbe closed 12 years ago
I'm using python2.6
ERROR:root:Uncaught exception GET /api/commands?from=&to=&server=127.0.0.1%3A6379 (63.245.220.240) HTTPRequest(protocol='http', host='www.peterbe.com:8888', method='GET', uri='/api/commands?from=&to=&server=127.0.0.1%3A6379', version='HTTP/1.1', remote_ip='63.245.220.240', body='', headers={'Accept-Language': 'en-us,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': 'www.peterbe.com:8888', 'Accept': 'application/json, text/javascript, */*; q=0.01', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120601 Firefox/14.0a2', 'Connection': 'keep-alive',... 7fdc9ef856'}) Traceback (most recent call last): File "/root/RedisLive/virtualenv/lib/python2.6/site-packages/tornado/web.py", line 1021, in _execute getattr(self, self.request.method.lower())(*args, **kwargs) File "/root/RedisLive/src/api/controller/CommandsController.py", line 32, in get minutes = difference.total_seconds() / 60 AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
Duplicate of #5
I'm using python2.6