Skip to content

Commit d6481f7

Browse files
Conengmorysteboe
authored andcommitted
Use field name constants
1 parent fb91c13 commit d6481f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kaggle/api/kaggle_api_extended.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def authenticate(self):
103103
config_data = self.read_config_environment(config_data)
104104

105105
# Step 2: if credentials were not in environment read in configuration file
106-
if 'username' not in config_data or 'key' not in config_data:
106+
if self.CONFIG_NAME_USER not in config_data or self.CONFIG_NAME_KEY not in config_data:
107107
if os.path.exists(self.config):
108108
config_data = self.read_config_file(config_data)
109109
else:

0 commit comments

Comments
 (0)