Traceback (most recent call last):


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask/app.py", line 1982, in wsgi_app

response = self.full_dispatch_request()


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask/app.py", line 1614, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask/app.py", line 1517, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise

raise value


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask/app.py", line 1612, in full_dispatch_request

rv = self.dispatch_request()


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask/app.py", line 1598, in dispatch_request

return self.view_functions[rule.endpoint](**req.view_args)


 "/home/pi/Mycodo/env/lib/python3.5/site-packages/flask_login/utils.py", line 261, in decorated_view

return func(*args, **kwargs)


 "/home/pi/Mycodo/mycodo/mycodo_flask/routes_page.py", line 664, in page_lcd

utils_lcd.lcd_reset_flashing(form_lcd_mod.lcd_id.data)


 "/home/pi/Mycodo/mycodo/mycodo_flask/utils/utils_lcd.py", line 192, in lcd_reset_flashing

return_value, return_msg = control.lcd_flash(lcd_id, False)
TypeError: 'NoneType' object is not iterable

Traceback (most recent call last):


 "/usr/local/lib/python3.6/site-packages/synapse/http/server.py", line 81, in wrapped_request_handler

yield h(self, request)


 "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.6/site-packages/synapse/http/server.py", line 316, in _async_render

callback_return = yield callback(request, **kwargs)


 "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.6/site-packages/synapse/rest/client/v1/room.py", line 479, in on_GET

event_filter=event_filter,


 "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.6/site-packages/synapse/handlers/pagination.py", line 186, in get_messages

room_id=room_id


 "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks

result = result.throwExceptionIntoGenerator(g)


 "/usr/local/lib/python3.6/site-packages/twisted/python/failure.py", line 491, in throwExceptionIntoGenerator

return g.throw(self.type, self.value, self.tb)


 "/usr/local/lib/python3.6/site-packages/synapse/streams/events.py", line 81, in get_current_token_for_room

yield self.sources["room"].get_current_key_for_room(room_id)


 "/usr/local/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks

result = g.send(result)


 "/usr/local/lib/python3.6/site-packages/synapse/storage/stream.py", line 465, in get_room_events_max_id

defer.returnValue("t%d-%d" % (topo, token))
TypeError: %d format: a number is required, not NoneType
