From 069aab9a3576c14fc118d60f4a2869611206432f Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 10 Apr 2020 11:35:21 +0200 Subject: [PATCH] Do not fail if there is nothing to commit of flathub repository. --- travis/compile_all.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/travis/compile_all.py b/travis/compile_all.py index aac2c48..0ed04b9 100755 --- a/travis/compile_all.py +++ b/travis/compile_all.py @@ -286,7 +286,11 @@ def update_flathub_git(): call(command) command = ['git', 'commit', '-m', 'Update to version {}'.format(main_project_versions['kiwix-desktop'])] - call(command) + try: + call(command) + except subprocess.CalledProcessError: + # This may fail if there is nothing to commit (a rebuild of the CI for exemple) + pass command = ['git', 'config', 'remote.origin.pushurl', FLATPAK_GIT_REMOTE] call(command)