Import 2017-06-07 23:51:09: master 8e8fa322

Author Committer Branch Timestamp Parent
jcfr jcfr master 2016-02-21 20:28:47 master d14e03a7
Changeset

BUG: Handle exception if string encoding fails

Sometimes there are tricky characters in the strings that need to be encoded (in my case 0xe9), throwing a UnicodeDecodeError exception, which, if not handled properly, results in a long list of SliceViewAnnotations error messages, furthermore stoppage of the running script

From: Csaba Pinter <csaba.pinter@queensu.ca>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@24938 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Base/Python/slicer/util.py Diff File