Added skipping 596 error code

- Fixes urllib.error.HTTPError: HTTP Error 596: Broken pipe, when a node is unavailable
This commit is contained in:
Stephen Rufle 2020-09-04 15:31:00 -07:00
parent 89a076ddc1
commit 1272900089
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ def main_list(options, config_path):
qemu_list = proxmox_api.node_qemu(node)
except HTTPError as error:
# the API raises code 595 when target node is unavailable, skip it
if error.code == 595:
if error.code == 595 or error.code == 596:
continue
# if it was some other error, reraise it
raise error