Catching exception

This commit is contained in:
lfield 2018-10-05 16:05:59 +02:00
parent ad1d27fa94
commit 0c6fe9164f
1 changed files with 4 additions and 1 deletions

View File

@ -340,7 +340,10 @@ def install_boinc_files(dest_dir, install_web_files, install_server_files):
shutil.copy(srcdir('html/user/sample_motd.php'), dir('html/user/motd.php'))
os.system("rm -f "+dir('html/languages/translations/*'))
install_glob(srcdir('html/languages/translations/*.po'), dir('html/languages/translations/'))
os.remove(srcdir('html/inc/release.inc'))
try:
os.remove(srcdir('html/inc/release.inc'))
except OSError:
pass
try:
s = subprocess.Popen(["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE, stderr=open(os.devnull, 'w'))
commit = s.stdout.read()[:7]