MeasureIt: Enable error catch to avoid hidden errors in big try except block
In some situations an unexpected error could appear in OpenGL. This try block catch this error and finish smoothly the routine and print a error message in the console to avoid the error keeps hidden, specially if some API change.
This commit is contained in:
parent
53e4e3c39d
commit
ce2ced1598
|
@ -635,8 +635,7 @@ def draw_segments(context, myobj, op, region, rv3d):
|
|||
except IndexError:
|
||||
ms.glfree = True
|
||||
except:
|
||||
# print("Unexpected error:" + str(exc_info()))
|
||||
# if error, disable segment
|
||||
print("Unexpected error:" + str(exc_info()))
|
||||
pass
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue