From 127290008974d8f476dd5605fad5622e11b3d86f Mon Sep 17 00:00:00 2001 From: Stephen Rufle Date: Fri, 4 Sep 2020 15:31:00 -0700 Subject: [PATCH] Added skipping 596 error code - Fixes urllib.error.HTTPError: HTTP Error 596: Broken pipe, when a node is unavailable --- proxmox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox.py b/proxmox.py index f5d29ca..9c6a2f2 100755 --- a/proxmox.py +++ b/proxmox.py @@ -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