stamen / maptcha-v2

Maptcha Version 2
Other
5 stars 1 forks source link

Edit-ui: "TypeError...empty sequence with no initial value" after submitting rough placement #24

Closed sconnelley closed 11 years ago

sconnelley commented 11 years ago

Possibly tied to the KeyError in this ticket

ERROR OUTPUT

TypeError TypeError: reduce() of empty sequence with no initial value

Traceback (most recent call last) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1701, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1689, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request return self.view_functionsrule.endpoint File "/Users/sconnelley/Sites/stamen/www/yearofthebay/edit_ui/app.py", line 104, in place_rough_map place_roughly(map_dom, roughplace_dom, queue, map, ul_lat, ul_lon, lr_lat, lr_lon) File "/Users/sconnelley/Sites/stamen/www/yearofthebay/edit_ui/data.py", line 223, in place_roughly update_map_rough_consensus(map_dom, place_dom, map) File "/Users/sconnelley/Sites/stamen/www/yearofthebay/edit_ui/data.py", line 362, in update_map_rough_consensus union_pairs = reduce(lambda a, b: a.union(b), pair_overlaps) TypeError: reduce() of empty sequence with no initial value The debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error.