From 3e9169b282fdaf212e6ae0afab7c9f4f051935f2 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Mon, 23 Jun 2025 15:55:26 +0530 Subject: [PATCH] 1) Upgrade urllib3 to 2.5.* 2) Fixed one issue for #3319 --- requirements.txt | 2 +- web/pgadmin/settings/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 361987f61..e95daec89 100644 --- a/requirements.txt +++ b/requirements.txt @@ -53,7 +53,7 @@ sqlparse==0.* sshtunnel==0.* typer[all]==0.16.* urllib3==1.26.*; python_version <= '3.9' -urllib3==2.4.*; python_version > '3.9' +urllib3==2.5.*; python_version > '3.9' user-agents==2.2.0 Werkzeug==3.1.* WTForms==3.1.*; python_version <= '3.9' diff --git a/web/pgadmin/settings/__init__.py b/web/pgadmin/settings/__init__.py index 3135906e0..266b27c05 100644 --- a/web/pgadmin/settings/__init__.py +++ b/web/pgadmin/settings/__init__.py @@ -346,7 +346,7 @@ def get_application_state(): connection_info['open_file_name']): file_path = get_complete_file_path( connection_info['open_file_name']) - file_deleted = False if os.path.exists(file_path) else True + file_deleted = False if file_path else True connection_info['file_deleted'] = file_deleted if (not file_deleted and connection_info['is_editor_dirty'] and