LFRequest.py: do not die when attempting a port that is already deleted

Signed-off-by: Jed Reynolds <jed@candelatech.com>
This commit is contained in:
Jed Reynolds
2021-03-05 16:06:33 -08:00
parent 8c6910a60f
commit 6fb5313a6c

View File

@@ -288,7 +288,7 @@ class LFRequest:
print("----- Response: --------------------------------------------------------")
LFUtils.debug_printer.pprint(myresponses[0].reason)
print("------------------------------------------------------------------------")
if die_on_error_ == True:
if (error.code != 404) and (die_on_error_ == True):
traceback.print_stack(limit=15)
exit(1)
except urllib.error.URLError as uerror: