misc: don't try cleaning non existing directories on exit

This commit is contained in:
Frédéric Péters 2015-08-20 09:05:08 +02:00
parent 050d90e75e
commit 62aabff038
1 changed files with 2 additions and 0 deletions

View File

@ -368,6 +368,8 @@ def send_packages(dist, arch, project, package, last_tag):
open(stamp_file, 'w').close()
def clean_git_on_exit(git_project_path):
if not os.path.exists(git_project_path):
return
os.chdir(git_project_path)
call("git stash --quiet")
changelog_tmp = os.path.join(