Traceback (most recent call last):


 "manage.py", line 101, in <module>

manager.run()


 "/usr/lib/python2.7/site-packages/flask_script/__init__.py", line 412, in run

result = self.handle(sys.argv[0], sys.argv[1:])


 "/usr/lib/python2.7/site-packages/flask_script/__init__.py", line 383, in handle

res = handle(*args, **config)


 "/usr/lib/python2.7/site-packages/flask_script/commands.py", line 216, in __call__

return self.run(*args, **kwargs)


 "/usr/lib/python2.7/site-packages/flask_migrate/__init__.py", line 235, in upgrade

command.upgrade(config, revision, sql=sql, tag=tag)


 "/usr/lib/python2.7/site-packages/alembic/command.py", line 174, in upgrade

script.run_env()


 "/usr/lib/python2.7/site-packages/alembic/script/base.py", line 397, in run_env

util.load_python_file(self.dir, 'env.py')


 "/usr/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 93, in load_python_file

module = load_module_py(module_id, path)


 "/usr/lib/python2.7/site-packages/alembic/util/compat.py", line 79, in load_module_py

mod = imp.load_source(module_id, path, fp)


 "migrations/env.py", line 86, in <module>

run_migrations_offline()


 "migrations/env.py", line 47, in run_migrations_offline

context.run_migrations()


 "<string>", line 8, in run_migrations


 "/usr/lib/python2.7/site-packages/alembic/runtime/environment.py", line 797, in run_migrations

self.get_context().run_migrations(**kw)


 "/usr/lib/python2.7/site-packages/alembic/runtime/migration.py", line 312, in run_migrations

step.migration_fn(**kw)


 "/src/migrations/versions/4f95ecd76bf8_normalize_distributed_query_architecture.py", line 43, in upgrade

results = map(DistributedQueryTask._make, cursor.fetchall())
AttributeError: 'NoneType' object has no attribute 'fetchall'

Traceback (most recent call last):


 "C:\Users\Daniel\Anaconda3\lib\site-packages\spyder\plugins\editor.py", line 1481, in refresh_save_all_action

for finfo in editorstack.data)
AttributeError: 'NoneType' object has no attribute 'data'
