diff --git a/examples/Training/python/ROIs.py b/examples/Training/python/ROIs.py index faca90cea4f..0e1a205d8a8 100755 --- a/examples/Training/python/ROIs.py +++ b/examples/Training/python/ROIs.py @@ -286,4 +286,8 @@ def create_mask(mask_bytes, bytes_per_pixel=1): # Close connection # ================ # When you are done, close the session to free up server resources. -conn.close() +try: + conn.close() +except Exception as e: + print(e) +