Skip to content

Commit 1df48e7

Browse files
chore: raise exceptions in get_proxy_dict
1 parent 954e792 commit 1df48e7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

solnlib/conf_manager.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,8 @@ def get_proxy_dict(
560560
proxy_stanza: str = "proxy",
561561
**kwargs,
562562
) -> Union[Dict[str, str], NoReturn]:
563-
"""This function returns the log level for the addon from configuration
564-
file.
563+
"""This function returns the proxy settings for the addon from
564+
configuration file.
565565
566566
Arguments:
567567
logger: Logger.
@@ -590,13 +590,13 @@ def get_proxy_dict(
590590
realm=f"__REST_CREDENTIAL__#{app_name}#configs/conf-{conf_name}",
591591
)
592592
conf = cfm.get_conf(conf_name)
593-
except ConfManagerException:
594-
logger.error(f"Failed to fetch configuration file '{conf_name}'.")
593+
except Exception:
594+
raise ConfManagerException(f"Failed to fetch configuration file '{conf_name}'.")
595595
else:
596596
try:
597597
proxy_dict = conf.get(proxy_stanza)
598-
except ConfStanzaNotExistException:
599-
logger.error(
598+
except Exception:
599+
raise ConfStanzaNotExistException(
600600
f"Failed to fetch '{proxy_stanza}' from the configuration file '{conf_name}'. "
601601
)
602602
else:

0 commit comments

Comments
 (0)