]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
cannot be done in that function
authorHolger Levsen <holger@layer-acht.org>
Tue, 6 Sep 2011 08:46:44 +0000 (10:46 +0200)
committerHolger Levsen <holger@layer-acht.org>
Tue, 6 Sep 2011 08:46:44 +0000 (10:46 +0200)
build.py

index ed26703a5f260b6f6d122b62ba2b10211232a374..d12688acbc9a30f549aa4f30feb7db1b528a6607 100755 (executable)
--- 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()