File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,8 +512,8 @@ def _lookup_stdio_config(source_info: dict, database) -> tuple:
512512
513513 for src in sources :
514514 config = src .get ("config" , {})
515- if "path" in config :
516- config_path = Path (os .path .expanduser (config . get ( "path" , "" ) ))
515+ if config . get ( "path" ) :
516+ config_path = Path (os .path .expanduser (config [ "path" ] ))
517517 if not config_path .exists ():
518518 continue
519519 try :
@@ -543,8 +543,8 @@ def _lookup_http_config(source_info: dict, database) -> tuple:
543543
544544 for src in sources :
545545 config = src .get ("config" , {})
546- if "path" in config :
547- config_path = Path (os .path .expanduser (config . get ( "path" , "" ) ))
546+ if config . get ( "path" ) :
547+ config_path = Path (os .path .expanduser (config [ "path" ] ))
548548 if not config_path .exists ():
549549 continue
550550 try :
You can’t perform that action at this time.
0 commit comments