summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHuang Hao <hao.h.huang@intel.com>2013-03-11 18:42:25 +0800
committerGerrit Code Review <gerrit2@otctools.jf.intel.com>2013-03-12 00:38:50 -0700
commitf11008f4c3fe8adf14aa16d0106ed8e0baf087d7 (patch)
treecbeec5fdfb3c580645b16e78e215fab8120925c1 /tools
parent869821ae7737e0a65c1d2613f87c425c988f417c (diff)
downloadmic-f11008f4c3fe8adf14aa16d0106ed8e0baf087d7.tar.gz
mic-f11008f4c3fe8adf14aa16d0106ed8e0baf087d7.tar.bz2
mic-f11008f4c3fe8adf14aa16d0106ed8e0baf087d7.zip
Remove useless try and reraise blocks.
These code catch all exceptions and simply reraise them, which is equivalent to not writing the try block. So just remove them to cleanup. Change-Id: I965356746a5b349458205de9c5a1d6bf97bf8d93
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mic7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/mic b/tools/mic
index 02a96df..b316dbf 100755
--- a/tools/mic
+++ b/tools/mic
@@ -90,11 +90,8 @@ class MicCmd(cmdln.Cmdln):
@cmdln.alias("cr")
def do_create(self, argv):
- try:
- cr = creator.Creator()
- cr.main(argv[1:])
- except:
- raise
+ cr = creator.Creator()
+ cr.main(argv[1:])
def _root_confirm(self):
if os.geteuid() != 0: