Improve error messages when given an empty database object #469
Labels
contribution-welcome
Welcome your contributions
enhancement
New feature or request
good-first-issue
Good first issue for contribution.
no-stale
Exempt from stale bot
Description
When starting the dashboard for an empty or non-existing database storage, the dashboard crashes when trying to determine the version information. The storage is empty and there is thus no table called
version_info
.How to Reproduce
optuna-dashboard sqlite:///db.sqlite3
sqlite3.OperationalError: no such table: version_info
Python version
3.11.3
Optuna version
3.1.1
optuna-dashboard version or git revision
0.9.2
Web browser
none
The text was updated successfully, but these errors were encountered: