File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments