Convert Circuit Path from API to line

I am not sure I would say “never”. I would probably say, if you will use try and except then at least use some sort of logging to output the error:

try:
    errorReport = None
except:
    import traceback
    errorReport = traceback.format_exc()

if None == errorReport:
    OUT = 0
else:
    OUT = errorReport