mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed error occurring while dumping the servers from CLI. #6137
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user