mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
Fix die_on_error command so it doesn't trigger on a 404 error
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user