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_calibration.py", line 106, in calibration_atlas_ph

next_stage > 1):
TypeError: unorderable types: NoneType() > int()

Traceback (most recent call last):


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/werkzeug/serving.py", line 303, in run_wsgi

execute(self.server.app)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/werkzeug/serving.py", line 291, in execute

application_iter = app(environ, start_response)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/moto/server.py", line 104, in __call__

return backend_app(environ, start_response)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 2309, in __call__

return self.wsgi_app(environ, start_response)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 2295, in wsgi_app

response = self.handle_exception(e)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1741, in handle_exception

reraise(exc_type, exc_value, tb)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 2292, in wsgi_app

response = self.full_dispatch_request()


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1815, in full_dispatch_request

rv = self.handle_user_exception(e)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1718, in handle_user_exception

reraise(exc_type, exc_value, tb)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/_compat.py", line 35, in reraise

raise value


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1813, in full_dispatch_request

rv = self.dispatch_request()


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request

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


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/moto/core/utils.py", line 140, in __call__

result = self.callback(request, request.url, {})


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/moto/core/responses.py", line 117, in dispatch

return cls()._dispatch(*args, **kwargs)


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/moto/core/responses.py", line 200, in _dispatch

return self.call_action()


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/moto/core/responses.py", line 274, in call_action

response = method()


 "/Users/lanhel/Developer/GunIO/Ziff/src/localstack/.venv/lib/python3.7/site-packages/moto/iam/responses.py", line 222, in get_role_policy

role_name, policy_name)
TypeError: cannot unpack non-iterable NoneType object
