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:
Matthew Stidham
2021-03-03 12:09:37 -08:00
parent ae9ea83ea7
commit 9308f1df87

View File

@@ -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: