From 9308f1df87c2f7393252b1dc8d88a7a81a0b5ad0 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Wed, 3 Mar 2021 12:09:37 -0800 Subject: [PATCH] Fix die_on_error command so it doesn't trigger on a 404 error Signed-off-by: Matthew Stidham --- py-json/LANforge/LFRequest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-json/LANforge/LFRequest.py b/py-json/LANforge/LFRequest.py index e1a137ad..69e03bee 100644 --- a/py-json/LANforge/LFRequest.py +++ b/py-json/LANforge/LFRequest.py @@ -220,7 +220,7 @@ class LFRequest: print("----- Response: --------------------------------------------------------") LFUtils.debug_printer.pprint(responses[0].reason) print("------------------------------------------------------------------------") - if die_on_error_ or (error.code != 404): + if die_on_error_: traceback.print_stack(limit=15) exit(1) except urllib.error.URLError as uerror: