diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-11-28 18:28:40 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-11-28 18:28:40 +0000 |
commit | 7f0dc323b18599cf8726d1a1c9536ecfb2d25fd6 (patch) | |
tree | 19764cf2ce88654d93ba8416ebf90589fecb410b | |
parent | 708de20047fb694e56d048f0f965b9bfb4c9d5ba (diff) | |
download | morph-7f0dc323b18599cf8726d1a1c9536ecfb2d25fd6.tar.gz |
unnecesary exception catching
-rw-r--r-- | morphlib/writeexts.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/morphlib/writeexts.py b/morphlib/writeexts.py index 24365592..d3940b0a 100644 --- a/morphlib/writeexts.py +++ b/morphlib/writeexts.py @@ -149,12 +149,9 @@ class WriteExtension(cliapp.Application): def create_local_system(self, temp_root, raw_disk): '''Create a raw system image locally.''' - try: - with self.disk_image_created(location): - self.format_btrfs(location) - self.create_system(temp_root, location) - except BaseException, e: - raise + with self.disk_image_created(location): + self.format_btrfs(location) + self.create_system(temp_root, location) @contextlib.contextmanager def disk_image_created(self, location): |