diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-12 16:50:37 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-12 16:50:37 +0100 |
commit | 8bd74df7ecce3dd5a13503acd91498c4d0fdb2f5 (patch) | |
tree | be92ea5cfb2368815fc6270776802a278a5fec79 /gbp | |
parent | ba09a0a1fb93eda94f6e3d2f2d3ff48bb56bc242 (diff) |
command_wrappers: Simplify RunAtCommand
Diffstat (limited to 'gbp')
-rw-r--r-- | gbp/command_wrappers.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py index aec30182..bf26bff9 100644 --- a/gbp/command_wrappers.py +++ b/gbp/command_wrappers.py @@ -237,10 +237,8 @@ class RunAtCommand(Command): try: os.chdir(dir) Command.__call__(self, list(*args)) + finally: os.chdir(curdir) - except Exception: - os.chdir(curdir) - raise class UnpackTarArchive(Command): |