From aae0ff2bd67c2a60c67d0efc0fe10e5e6af85edb Mon Sep 17 00:00:00 2001 From: Tomas Kopecek Date: May 24 2022 11:46:24 +0000 Subject: kojid: don't fail on missing ccache file Related: https://pagure.io/koji/issue/3369 --- diff --git a/builder/kojid b/builder/kojid index 248f1fb..cd2e1ed 100755 --- a/builder/kojid +++ b/builder/kojid @@ -6624,7 +6624,7 @@ if __name__ == "__main__": krb_principal = options.host_principal_format % socket.getfqdn() try: # Check ccache is not empty or authentication will fail - if os.stat(options.ccache).st_size == 0: + if os.path.exists(options.ccache) and os.stat(options.ccache).st_size == 0: os.remove(options.ccache) session.gssapi_login(principal=krb_principal,