beefeb9877afbe03023b9729398d0bf80f61211a,patches/kaggle_gcp.py,KaggleKernelCredentials,refresh,#KaggleKernelCredentials#,46

Before Change


            raise RefreshError("Unable to refresh access token due to connection error.") from e
        except Exception as e:
            Log.error(f"Error trying to refresh access token: {e}")
            Log.error(f"No {self.target.service} integration found.")
            print(
                f"Please ensure you have selected a {self.target.service} account in the Kernels Settings sidebar.")
            raise RefreshError("Unable to refresh access token.") from e

After Change


        except Exception as e:
            Log.error(f"Error trying to refresh access token: {e}")
            if (not get_integrations().has_integration(self.target)):
                Log.error(f"No {self.target.service} integration found.")
                print(
                   f"Please ensure you have selected a {self.target.service} account in the Kernels Settings sidebar.")
            raise RefreshError("Unable to refresh access token.") from e
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: Kaggle/docker-python
Commit Name: beefeb9877afbe03023b9729398d0bf80f61211a
Time: 2019-07-03
Author: ifigotin@google.com
File Name: patches/kaggle_gcp.py
Class Name: KaggleKernelCredentials
Method Name: refresh


Project Name: GoogleCloudPlatform/healthcare
Commit Name: cee6200feae266a4a3869be2742b01d940dd4969
Time: 2019-02-04
Author: noreply@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: setup_project


Project Name: galeone/dynamic-training-bench
Commit Name: 0a68639f4c33323274e7829b9349d0170dc6c8ea
Time: 2017-02-08
Author: nessuno@nerdz.eu
File Name: evaluate.py
Class Name:
Method Name: