diff options
-rw-r--r-- | gbp/scripts/common/buildpackage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py index 8fd7102c..4facf68c 100644 --- a/gbp/scripts/common/buildpackage.py +++ b/gbp/scripts/common/buildpackage.py @@ -89,7 +89,7 @@ def git_archive_submodules(repo, treeish, output, prefix, comp_type, comp_level, # order to avoid determining the output filename of the compressor try: comp_level_opt = '-%d' % comp_level if comp_level is not None else '' - except TypeError as e: + except TypeError: raise GbpError("Invalid compression level '%s'" % comp_level) ret = os.system("%s --stdout %s %s %s > %s" % (comp_type, comp_level_opt, comp_opts, main_archive, @@ -113,7 +113,7 @@ def git_archive_single(treeish, output, prefix, comp_type, comp_level, comp_opts pipe.prepend("git archive --format=%s --prefix=%s %s" % (format, prefix, treeish), '.-') try: comp_level_opt = '-%d' % comp_level if comp_level is not None else '' - except TypeError as e: + except TypeError: raise GbpError("Invalid compression level '%s'" % comp_level) if comp_type: pipe.append('%s -c %s %s' % (comp_type, comp_level_opt, comp_opts), '--') |