cat: improved error handling
This commit is contained in:
@ -134,7 +134,11 @@ def run(config):
|
|||||||
rep = repr(entry)
|
rep = repr(entry)
|
||||||
output_0.write(str2bytes(rep)+b"\n")
|
output_0.write(str2bytes(rep)+b"\n")
|
||||||
else:
|
else:
|
||||||
o_view[i] = entry
|
try:
|
||||||
|
o_view[i] = entry
|
||||||
|
except:
|
||||||
|
print("\nError with entry:", repr(entry))
|
||||||
|
print(repr(o_view))
|
||||||
i+=1
|
i+=1
|
||||||
v.close()
|
v.close()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user