Refactor get_mic_binpath() to avoid catch all exceptions.
authorHuang Hao <hao.h.huang@intel.com>
Wed, 6 Mar 2013 06:05:20 +0000 (14:05 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Wed, 6 Mar 2013 06:13:09 +0000 (14:13 +0800)
commitf8bc63625af77b8857f3aca0db519f6f3422e3e5
treedf82ea0420643bb38ed06abd44185e9998297734
parent5aa8ecfa16841d2e1e322c78106561f06c9f16c2
Refactor get_mic_binpath() to avoid catch all exceptions.

Catch the specific exceptions it cares about, and reduce "try"
block to minimal, otherwise some other errors will be hidden.

Change-Id: Icbef03eef1591ba44466d5634943db5b8c86bdc4
mic/rt_util.py