Skip to content

Commit dedde37

Browse files
Conengmorysteboe
authored andcommitted
Adhere to 80 chars line width
1 parent d6481f7 commit dedde37

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

kaggle/api/kaggle_api_extended.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,15 @@ def authenticate(self):
102102
# Step 1: try getting username/password from environment
103103
config_data = self.read_config_environment(config_data)
104104

105-
# Step 2: if credentials were not in environment read in configuration file
106-
if self.CONFIG_NAME_USER not in config_data or self.CONFIG_NAME_KEY not in config_data:
105+
# Step 2: if credentials were not in env read in configuration file
106+
if self.CONFIG_NAME_USER not in config_data \
107+
or self.CONFIG_NAME_KEY not in config_data:
107108
if os.path.exists(self.config):
108109
config_data = self.read_config_file(config_data)
109110
else:
110-
raise IOError('Could not find kaggle.json. Make sure it\'s located in {}.'
111-
' Or use the environment method.'.format(self.config_dir))
111+
raise IOError('Could not find {}. Make sure it\'s located in'
112+
' {}. Or use the environment method.'
113+
.format(self.config_file, self.config_dir))
112114

113115
# Step 3: load into configuration!
114116
self._load_config(config_data)

0 commit comments

Comments
 (0)