-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Kedro Viz stays waiting even if no valid project was found #1793
Changes from all commits
f7f652e
f55291c
6294144
aa09b85
2135271
95f3dc5
80f4d87
6a7e36b
1f0af43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,8 +128,14 @@ def run( | |
params, | ||
): | ||
"""Launch local Kedro Viz instance""" | ||
from kedro.framework.startup import bootstrap_project | ||
|
||
from kedro_viz.server import run_server | ||
|
||
project_path = Path.cwd() | ||
|
||
bootstrap_project(project_path) | ||
|
||
installed_version = parse(__version__) | ||
latest_version = get_latest_version() | ||
if is_running_outdated_version(installed_version, latest_version): | ||
|
@@ -158,7 +164,6 @@ def run( | |
"extra_params": params, | ||
} | ||
if autoreload: | ||
project_path = Path.cwd() | ||
run_server_kwargs["project_path"] = project_path | ||
run_process_kwargs = { | ||
"path": project_path, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The above process calls |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine but instead of showing an error stack trace, it would be nice to show a custom error message with the exception, something like -