From: Holger Levsen Date: Tue, 6 Sep 2011 08:46:44 +0000 (+0200) Subject: cannot be done in that function X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=132bd63e145cff39f3e0447f90a1bdcaef41e7f9;p=profitbricks%2Fjenkins-build-scripts.git cannot be done in that function --- diff --git a/build.py b/build.py index ed26703..d12688a 100755 --- a/build.py +++ b/build.py @@ -214,7 +214,6 @@ def exit_ok(): sys.exit(0) def exit_error(): - atexit.unregister(remove_git_target_workspace) send_email(SMTP_BUILD_ERROR) sys.exit(1) @@ -413,6 +412,7 @@ if __name__ == '__main__': fh.close() except: pass + atexit.unregister(remove_git_target_workspace) exit_error() else: create_dput_cfg()