Skip to content

Commit

Permalink
fixup: Handle empty output
Browse files Browse the repository at this point in the history
  • Loading branch information
simonklb committed Jun 3, 2024
1 parent 06993e6 commit 70d718e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion postgres-appliance/bootstrap/clone_with_wale.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def list_backups(env):
if os.getenv('USE_WALG_RESTORE') == 'true':
backup_list_cmd = build_wale_command('backup-list', extra_args=['--detail', '--json'])
output = subprocess.check_output(backup_list_cmd, env=env)
return json.loads(output)
return json.loads(output or 'null')
else:
backup_list_cmd = build_wale_command('backup-list')
output = subprocess.check_output(backup_list_cmd, env=env)
Expand Down

0 comments on commit 70d718e

Please sign in to comment.