Don't trigger a traceback in debug mode for 4x or 5x status codes.
This commit is contained in:
parent
a0eedac532
commit
c8c12cab86
2
av98.py
2
av98.py
|
@ -807,6 +807,8 @@ Slow internet connection? Use 'set timeout' to be more patient.""")
|
|||
ui_out.error("ERROR: Local file not found!")
|
||||
elif isinstance(err, IsADirectoryError):
|
||||
ui_out.error("ERROR: Viewing local directories is not supported!")
|
||||
elif isinstance(err, RuntimeError): # Misusing this for status 4x or 5x
|
||||
ui_out.error("ERROR: " + str(err))
|
||||
else:
|
||||
ui_out.error("ERROR: " + str(err))
|
||||
ui_out.debug(traceback.format_exc())
|
||||
|
|
Loading…
Reference in New Issue