diff --git a/gitlab-changelog.py b/gitlab-changelog.py index 8dec84209faa80600bfc41f2deed6e26871ae700..26656be9195147b627256ac9bd55d558c273e949 100644 --- a/gitlab-changelog.py +++ b/gitlab-changelog.py @@ -60,7 +60,10 @@ from gi.repository import GLib, GnomeDesktop # noqa: E402 def get_commit_translations(commit): """Return a potentially empty set of locale codes changed by this commit.""" - diff = commit.diff(commit.hexsha + '~1') + try: + diff = commit.diff(commit.hexsha + '~1') + except: + return set([]) locales = [] for item in diff: