Skip to content

Commit b1c9953

Browse files
committed
adjustments to fix issues with caller_name and init the app a couple of times
1 parent 6bd342a commit b1c9953

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

dash/dash.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,9 +567,6 @@ def __init__( # pylint: disable=too-many-statements, too-many-branches
567567
backend_cls = get_backend(inferred_backend)
568568
self.backend = backend_cls()
569569
self.server = server
570-
# Update caller_name from server's name attribute if available
571-
if hasattr(server, "name"):
572-
caller_name = server.name
573570
else:
574571
# No server instance provided, create backend and let backend create server
575572
self.backend = backend_cls()
@@ -703,9 +700,6 @@ def __init__( # pylint: disable=too-many-statements, too-many-branches
703700
# tracks internally if a function already handled at least one request.
704701
self._got_first_request = {"pages": False, "setup_server": False}
705702

706-
if self.server is not None:
707-
self.init_app()
708-
709703
self.logger.setLevel(logging.INFO)
710704

711705
if self.__class__.__name__ == "JupyterDash":

0 commit comments

Comments
 (0)