diff options
author | Huang Hao <hao.h.huang@intel.com> | 2013-03-11 18:42:25 +0800 |
---|---|---|
committer | Gerrit Code Review <gerrit2@otctools.jf.intel.com> | 2013-03-12 00:38:50 -0700 |
commit | f11008f4c3fe8adf14aa16d0106ed8e0baf087d7 (patch) | |
tree | cbeec5fdfb3c580645b16e78e215fab8120925c1 /tools | |
parent | 869821ae7737e0a65c1d2613f87c425c988f417c (diff) | |
download | mic-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-x | tools/mic | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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: |