File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,15 @@ def authenticate(self):
102
102
# Step 1: try getting username/password from environment
103
103
config_data = self .read_config_environment (config_data )
104
104
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 :
107
108
if os .path .exists (self .config ):
108
109
config_data = self .read_config_file (config_data )
109
110
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 ))
112
114
113
115
# Step 3: load into configuration!
114
116
self ._load_config (config_data )
You can’t perform that action at this time.
0 commit comments