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:
Antonio Vazquez 2016-08-09 17:00:55 +02:00
parent 53e4e3c39d
commit ce2ced1598
1 changed files with 1 additions and 2 deletions

View File

@ -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