Hi Mark,
the following should work:
try:
product = ProductIO.readProduct(product_file)
except RuntimeError as e:
print(e)
I’m not sure, but I think it will be RuntimeError in most cases, but you can also catch BaseException.
Hi Mark,
the following should work:
try:
product = ProductIO.readProduct(product_file)
except RuntimeError as e:
print(e)
I’m not sure, but I think it will be RuntimeError in most cases, but you can also catch BaseException.