File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ def plugin_get_value(self, key: str) -> Optional[Any]:
243243 "No running plugin to retrieve configuration for!"
244244 )
245245
246- username = self .username or self .default_username ()
246+ username = self .username or self .default_username () or "DEFAULT"
247247 full_key = f"plugin-{ self .running_plugin } -{ key } "
248248
249249 return self .config .get (username , full_key , fallback = None )
@@ -535,7 +535,7 @@ def _handle_no_default_user(self): # pylint: disable=too-many-branches
535535
536536 if len (users ) == 0 :
537537 # config is new or _really_ old
538- token = self .config .get ("DEFAULT" , "token" )
538+ token = self .config .get ("DEFAULT" , "token" , fallback = None )
539539
540540 if token is not None :
541541 # there's a token in the config - configure that user
You can’t perform that action at this time.
0 commit comments