Fix cat lines of output
Minor modification of try-except build block:
: