Traceback (most recent call last):


 "new_backtest_core_biz.py", line 127, in <module>

backtest_func(AC, backtest_code_list, backtest_start_date, backtest_end_date)


 "new_backtest_core_biz.py", line 19, in backtest_func

DATA = QA.QA_fetch_stock_day_adv(code, start, end).to_qfq()
AttributeError: 'NoneType' object has no attribute 'to_qfq'

Traceback (most recent call last):


 "watermarks.py", line 311, in <module>

tf.app.run()


 "lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run

_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)


 "lib/python3.6/site-packages/absl/app.py", line 303, in run

_run_main(main, args)


 "lib/python3.6/site-packages/absl/app.py", line 251, in _run_main

sys.exit(main(argv))


 "watermarks.py", line 306, in main

train(sess, globals()[FLAGS.dataset])


 "watermarks.py", line 189, in train

next_image, iterator_inits = dataset_split(dataset, .8)


 "cnn-watermark-removal/dataset.py", line 70, in dataset_split

records = get_records()


 "cnn-watermark-removal/dataset.py", line 64, in get_records

convert_to_record()


 "cnn-watermark-removal/dataset.py", line 181, in convert_to_record

writer.close()
AttributeError: 'NoneType' object has no attribute 'close'
