pythonstock / stock

stock,股票系统。使用python进行开发。
Apache License 2.0
6.64k stars 2.22k forks source link

指标页空白,日志报错(AttributeError("'NoneType' object has no attribute 'head' #30

Open SenYoung opened 4 years ago

SenYoung commented 4 years ago

[I 200802 16:17:37 dataIndicatorsHandler:27] 000001 [I 200802 16:17:37 dataIndicatorsHandler:27] 000001 [I 200802 16:17:37 dataIndicatorsHandler:51] Bad message (TypeError('not all arguments converted during string formatting',)): {'name': 'root', 'msg': 'error :', 'args': (AttributeError("'NoneType' object has no attribute 'head'",),), 'levelname': 'INFO', 'levelno': 20, 'pathname': '/data/stock/web/dataIndicatorsHandler.py', 'filename': 'dataIndicatorsHandler.py', 'module': 'dataIndicatorsHandler', 'exc_info': None, 'exc_text': None, 'stack_info': None, 'lineno': 51, 'funcName': 'get', 'created': 1596356257.799734, 'msecs': 799.7341156005859, 'relativeCreated': 2559465.4767513275, 'thread': 140460272067584, 'threadName': 'MainThread', 'processName': 'MainProcess', 'process': 13, 'message': 'Bad message (TypeError(\'not all arguments converted during string formatting\',)): {\'name\': \'root\', \'msg\': \'error :\', \'args\': (AttributeError("\'NoneType\' object has no attribute \'head\'",),), \'levelname\': \'INFO\', \'levelno\': 20, \'pathname\': \'/data/stock/web/dataIndicatorsHandler.py\', \'filename\': \'dataIndicatorsHandler.py\', \'module\': \'dataIndicatorsHandler\', \'exc_info\': None, \'exc_text\': None, \'stack_info\': None, \'lineno\': 51, \'funcName\': \'get\', \'created\': 1596356257.799734, \'msecs\': 799.7341156005859, \'relativeCreated\': 2559465.4767513275, \'thread\': 140460272067584, \'threadName\': \'MainThread\', \'processName\': \'MainProcess\', \'process\': 13}', 'asctime': '200802 16:17:37', 'color': '', 'end_color': ''} [I 200802 16:17:37 dataIndicatorsHandler:51] Bad message (TypeError('not all arguments converted during string formatting',)): {'name': 'root', 'msg': 'error :', 'args': (AttributeError("'NoneType' object has no attribute 'head'",),), 'levelname': 'INFO', 'levelno': 20, 'pathname': '/data/stock/web/dataIndicatorsHandler.py', 'filename': 'dataIndicatorsHandler.py', 'module': 'dataIndicatorsHandler', 'exc_info': None, 'exc_text': None, 'stack_info': None, 'lineno': 51, 'funcName': 'get', 'created': 1596356257.799734, 'msecs': 799.7341156005859, 'relativeCreated': 2559465.4767513275, 'thread': 140460272067584, 'threadName': 'MainThread', 'processName': 'MainProcess', 'process': 13, 'message': 'Bad message (TypeError(\'not all arguments converted during string formatting\',)): {\'name\': \'root\', \'msg\': \'error :\', \'args\': (AttributeError("\'NoneType\' object has no attribute \'head\'",),), \'levelname\': \'INFO\', \'levelno\': 20, \'pathname\': \'/data/stock/web/dataIndicatorsHandler.py\', \'filename\': \'dataIndicatorsHandler.py\', \'module\': \'dataIndicatorsHandler\', \'exc_info\': None, \'exc_text\': None, \'stack_info\': None, \'lineno\': 51, \'funcName\': \'get\', \'created\': 1596356257.799734, \'msecs\': 799.7341156005859, \'relativeCreated\': 2559465.4767513275, \'thread\': 140460272067584, \'threadName\': \'MainThread\', \'processName\': \'MainProcess\', \'process\': 13, \'message\': \'Bad message (TypeError(\\'not all arguments converted during string formatting\\',)): {\\'name\\': \\'root\\', \\'msg\\': \\'error :\\', \\'args\\': (AttributeError("\\'NoneType\\' object has no attribute \\'head\\'",),), \\'levelname\\': \\'INFO\\', \\'levelno\\': 20, \\'pathname\\': \\'/data/stock/web/dataIndicatorsHandler.py\\', \\'filename\\': \\'dataIndicatorsHandler.py\\', \\'module\\': \\'dataIndicatorsHandler\\', \\'exc_info\\': None, \\'exc_text\\': None, \\'stack_info\\': None, \\'lineno\\': 51, \\'funcName\\': \\'get\\', \\'created\\': 1596356257.799734, \\'msecs\\': 799.7341156005859, \\'relativeCreated\\': 2559465.4767513275, \\'thread\\': 140460272067584, \\'threadName\\': \\'MainThread\\', \\'processName\\': \\'MainProcess\\', \\'process\\': 13, \\'message\\': \\'Bad message (TypeError(\\\\'not all arguments converted during string formatting\\\\',)): {\\\\'name\\\\': \\\\'root\\\\', \\\\'msg\\\\': \\\\'error :\\\\', \\\\'args\\\\': (AttributeError("\\\\'NoneType\\\\' object has no attribute \\\\'head\\\\'",),), \\\\'levelname\\\\': \\\\'INFO\\\\', \\\\'levelno\\\\': 20, \\\\'pathname\\\\': \\\\'/data/stock/web/dataIndicatorsHandler.py\\\\', \\\\'filename\\\\': \\\\'dataIndicatorsHandler.py\\\\', \\\\'module\\\\': \\\\'dataIndicatorsHandler\\\\', \\\\'exc_info\\\\': None, \\\\'exc_text\\\\': None, \\\\'stack_info\\\\': None, \\\\'lineno\\\\': 51, \\\\'funcName\\\\': \\\\'get\\\\', \\\\'created\\\\': 1596356257.799734, \\\\'msecs\\\\': 799.7341156005859, \\\\'relativeCreated\\\\': 2559465.4767513275, \\\\'thread\\\\': 140460272067584, \\\\'threadName\\\\': \\\\'MainThread\\\\', \\\\'processName\\\\': \\\\'MainProcess\\\\', \\\\'process\\\\': 13}\\', \\'asctime\\': \\'200802 16:17:37\\', \\'color\\': \\'\\', \\'end_color\\': \\'\\'}\', \'asctime\': \'200802 16:17:37\', \'color\': \'\', \'end_color\': \'\'}', 'asctime': '200802 16:17:37', 'color': '', 'end_color': ''} [I 200802 16:17:37 dataIndicatorsHandler:52] #################### GetStockHtmlHandlerEnd #################### [I 200802 16:17:37 dataIndicatorsHandler:52] #################### GetStockHtmlHandlerEnd ####################