mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-26 06:30:06 -05:00
Fixed error occurring while dumping the servers from CLI. #6137
This commit is contained in:
1 parent
4ede084b8f
commit
f1e7782ca2
2 files changed
+5
-2
No files matched your search
@@ -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