mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-23 01:06:31 -06:00
[Backup] Checking for 'only_data' parameter before accessing it.
Reported by Neel Patel
This commit is contained in:
parent
98fa93413d
commit
0840e6af2d
@ -400,7 +400,7 @@ def create_backup_objects_job(sid):
|
||||
|
||||
elif data['format'] == 'plain':
|
||||
args.extend(['--format', 'plain'])
|
||||
if data['only_data']:
|
||||
if 'only_data' in data and data['only_data']:
|
||||
args.append('--data-only')
|
||||
set_param('disable_trigger', '--disable-triggers')
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user