Fixed error occurring while dumping the servers from CLI. #6137

This commit is contained in:
Yogesh Mahajan 2023-04-19 16:05:35 +05:30 committed by GitHub
parent 4ede084b8f
commit f1e7782ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -34,3 +34,4 @@ Bug fixes
| `Issue #5820 <https://github.com/pgadmin-org/pgadmin4/issues/5820>`_ - Fixed an issue where collation was set to none if we remove it while creating partitioned table.
| `Issue #6075 <https://github.com/pgadmin-org/pgadmin4/issues/6075>`_ - Ensure that the save button is enabled when registering a new server fails due to an API error.
| `Issue #6130 <https://github.com/pgadmin-org/pgadmin4/issues/6130>`_ - Ensure to quote the primary key value if needed while deleting rows from the table.
| `Issue #6137 <https://github.com/pgadmin-org/pgadmin4/issues/6137>`_ - Fixed error occurring while dumping the servers from CLI.

View File

@ -493,8 +493,10 @@ def dump_database_servers(output_file, selected_servers,
object_dict["Servers"] = server_dict
try:
file_path = filename_with_file_manager_path(
unquote(output_file), skip_permission_check=from_setup)
if from_setup:
file_path = unquote(output_file)
else:
file_path = filename_with_file_manager_path(unquote(output_file))
except Exception as e:
return _handle_error(str(e), from_setup)