diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-07-02 08:05:06 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-07-02 08:53:04 +0200 |
commit | e6e0150e07be32b91624b460b67be39b8f6b0ab9 (patch) | |
tree | ebf593199d58f8a46d3bbeae3335258c6e264d54 /gbp/scripts/common/buildpackage.py | |
parent | 92a744e5c8e9751f7336ddaac597ded2a7456d8f (diff) |
Make exception syntax consistent
Diffstat (limited to 'gbp/scripts/common/buildpackage.py')
-rw-r--r-- | gbp/scripts/common/buildpackage.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gbp/scripts/common/buildpackage.py b/gbp/scripts/common/buildpackage.py index 921bc15..8bbf143 100644 --- a/gbp/scripts/common/buildpackage.py +++ b/gbp/scripts/common/buildpackage.py @@ -97,7 +97,7 @@ def dump_tree(repo, export_dir, treeish, with_submodules): try: ret = pipe.copy('', '') if ret: - raise GbpError, "Error in dump_tree archive pipe" + raise GbpError("Error in dump_tree archive pipe") if with_submodules: if repo.has_submodules(): @@ -113,11 +113,11 @@ def dump_tree(repo, export_dir, treeish, with_submodules): ret = pipe.copy('', '') os.chdir(top) if ret: - raise GbpError, "Error in dump_tree archive pipe in submodule %s" % subdir - except OSError, err: + raise GbpError("Error in dump_tree archive pipe in submodule %s" % subdir) + except OSError as err: gbp.log.err("Error dumping tree to %s: %s" % (output_dir, err[0])) return False - except GbpError, err: + except GbpError as err: gbp.log.err(err) return False except Exception as e: |