Added skipping 596 error code
- Fixes urllib.error.HTTPError: HTTP Error 596: Broken pipe, when a node is unavailable
This commit is contained in:
parent
89a076ddc1
commit
1272900089
|
@ -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
|
||||
|
|
Reference in New Issue