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