Skip to content

Commit e0a2e16

Browse files
authored
Merge pull request #3213 from plotly/fix-getattr
Fix getattr
2 parents c14aa01 + cef2549 commit e0a2e16

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

dash/_obsolete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ def __getattr__(self, name: str):
2020
if name in self._obsolete_attributes:
2121
err = self._obsolete_attributes[name]
2222
raise err.exc(err.message)
23-
return getattr(self, name)
23+
return getattr(self.__dict__, name)

requirements/ci.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ black==22.3.0
33
flake8==7.0.0
44
flaky==3.8.1
55
flask-talisman==1.0.0
6+
ipython<9.0.0
67
mimesis<=11.1.0
78
mock==4.0.3
89
numpy<=1.26.3

tests/integration/devtools/test_devtools_error_handling.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: UTF-8 -*-
2+
import flaky
23
from dash import Dash, Input, Output, html, dcc
34
from dash.exceptions import PreventUpdate
45

@@ -119,6 +120,7 @@ def test_dveh006_long_python_errors(dash_duo):
119120
assert "self.wsgi_app" in error1
120121

121122

123+
@flaky.flaky(max_runs=3)
122124
def test_dveh002_prevent_update_not_in_error_msg(dash_duo):
123125
# raising PreventUpdate shouldn't display the error message
124126
app = Dash(__name__)

0 commit comments

Comments
 (0)