diff options
author | Antonioya <blendergit@gmail.com> | 2016-08-09 18:00:55 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2016-08-09 18:00:55 +0300 |
commit | ce2ced159895f41a7dbfac38f61e6d3421dd7346 (patch) | |
tree | c2c798cfd70451be28c8e495e13652bb2ec763cf /measureit/measureit_geometry.py | |
parent | 53e4e3c39dd04bfcf0ed42666b9883bdd52ff558 (diff) |
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.
Diffstat (limited to 'measureit/measureit_geometry.py')
-rw-r--r-- | measureit/measureit_geometry.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/measureit/measureit_geometry.py b/measureit/measureit_geometry.py index 7f4032ee..c542df88 100644 --- a/measureit/measureit_geometry.py +++ b/measureit/measureit_geometry.py @@ -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 |