buildpackage-rpm: remove too general exception catching
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 11 Jul 2014 12:41:45 +0000 (15:41 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:47:20 +0000 (14:47 +0200)
There should be no reason to catch general Exception here.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/buildpackage_rpm.py

index b458de6..ef784f4 100755 (executable)
@@ -82,9 +82,6 @@ def git_archive(repo, spec, output_dir, tmpdir_base, treeish, prefix,
         return False
     except GbpError:
         raise
-    except Exception as e:
-        gbp.log.err("Error creating %s: %s" % (output, e))
-        return False
     return True