Skip to content

Commit 622b91f

Browse files
authored
Include installed version in upgrade warning (#188)
New message: ``` Warning: Looks like you're using an outdated `kagglehub` version (installed: 0.3.3), please consider upgrading to the latest version (0.3.4). ``` Thread: https://chat.kaggle.net/kaggle/pl/6igpgm5a57nr9pwuyo63ugxxqh
1 parent ffa9ff7 commit 622b91f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kagglehub/clients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def _check_for_version_update(self, response: requests.Response) -> None:
101101
latest_version = parse(latest_version_str)
102102
if latest_version > current_version:
103103
logger.info(
104-
"Warning: Looks like you're using an outdated `kagglehub` "
105-
f"version, please consider updating (latest version: {latest_version})"
104+
f"Warning: Looks like you're using an outdated `kagglehub` version (installed: {current_version}), "
105+
f"please consider upgrading to the latest version ({latest_version})."
106106
)
107107

108108
def get(self, path: str, resource_handle: Optional[ResourceHandle] = None) -> dict:

0 commit comments

Comments
 (0)