supress_callback_exceptions = True,没有日志记录器

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",'supress_callback_exceptions')
shine622 回答:supress_callback_exceptions = True,没有日志记录器

万一您在Dash更改日志中错过了它,则会在1.0.0中删除这个拼写错误的后备广告。

仍应支持配置属性(从1.6.0版本开始),您只需要使用正确的名称即可。

app.config.suppress_callback_exceptions = True
本文链接:https://www.f2er.com/3126763.html

大家都在问