mirror of
https://github.com/dw-0/kiauh.git
synced 2026-08-03 12:57:53 +05:00
fix(ui): handle missing or empty local version values and standardize defaults (#763)
This commit is contained in:
@@ -152,7 +152,7 @@ def symlink_webui_nginx_log(
|
||||
def get_local_client_version(client: BaseWebClient) -> str | None:
|
||||
relinfo_file = client.client_dir.joinpath("release_info.json")
|
||||
version_file = client.client_dir.joinpath(".version")
|
||||
default = "n/a"
|
||||
default = "-"
|
||||
|
||||
if not client.client_dir.exists():
|
||||
return default
|
||||
|
||||
Reference in New Issue
Block a user