supress_callback_exceptions =真,没有日志记录器有效

问题描述 投票:0回答:1

[在较旧的Dash版本中,我曾经不得不说,

supress_callback_exceptions = True

自从我升级到Dash的新版本以来,现在在该行出现错误:

Traceback (most recent call last):
  File "dash-yahoo_options.py", line 2109, in <module>
    app.config.supress_callback_exceptions = True
  File "/home/idf/anaconda3/envs/dash_apps_36/lib/python3.7/site-packages/dash/_utils.py", line 81, in __setattr__
    self[key] = value
  File "/home/idf/anaconda3/envs/dash_apps_36/lib/python3.7/site-packages/dash/_utils.py", line 106, in __setitem__
    raise AttributeError(final_msg, key)
AttributeError: ('Invalid config key. Some settings are only available via the Dash constructor', 'supress_callback_exceptions')
(dash_apps_36) idf@ubvm:~/Downloads$ vi dash-yahoo_options.py
(dash_apps_36) idf@ubvm:~/Downloads$ python dash-yahoo_options.py
Traceback (most recent call last):
  File "dash-yahoo_options.py", line 2109, in <module>
    app.config.supress_callback_exceptions = True
  File "/home/idf/anaconda3/envs/dash_apps_36/lib/python3.7/site-packages/dash/_utils.py", line 81, in __setattr__
    self[key] = value
  File "/home/idf/anaconda3/envs/dash_apps_36/lib/python3.7/site-packages/dash/_utils.py", line 106, in __setitem__
    raise AttributeError(final_msg, key)
AttributeError: ('Invalid config key. Some settings are only available via the Dash constructor', 'supress_callback_exceptions')
python-3.7 plotly-dash
1个回答
0
投票

如果您在Dash更改日志中错过了它,则该错误拼写的后备在1.0.0中已删除。

© www.soinside.com 2019 - 2024. All rights reserved.