Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[FIX] authenticate error message
The error mesage while authenticating the user
was printing incorect informations.
  • Loading branch information
V0lantis committed Apr 24, 2022
commit bd234ec0c62ac8876b34ce94c4cab2b69c901b63
6 changes: 3 additions & 3 deletions kaggle/api/kaggle_api_extended.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ def authenticate(self):
if os.path.exists(self.config):
config_data = self.read_config_file(config_data)
else:
raise IOError('Could not find {}. Make sure it\'s located in'
' {}. Or use the environment method.'.format(
self.config_file, self.config_dir))
raise IOError(f'Could not find {self.config_file}.'
f' Make sure it\'s located in {self.config}.'
' Or use the environment method.')

# Step 3: load into configuration!
self._load_config(config_data)
Expand Down