X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=src%2Fpyutils%2Fconfig.py;h=a1aa5f97d89d9e3ebebe044436271dafef1a37a8;hb=HEAD;hp=f4647c45eadc4907ff95165fe479b335fa80d1f3;hpb=9a3057c74c23611da36dfb7a1f3c41d67114666e;p=pyutils.git diff --git a/src/pyutils/config.py b/src/pyutils/config.py index f4647c4..a1aa5f9 100644 --- a/src/pyutils/config.py +++ b/src/pyutils/config.py @@ -403,6 +403,9 @@ class Config: Otherwise False is returned. + Raises: + Exception: On error reading from zookeeper + >>> to_bool('True') True @@ -604,6 +607,10 @@ class Config: A dict containing the parsed program configuration. Note that this can be safely ignored since it is also saved in `config.config` and may be used directly using that identifier. + + Raises: + Exception: if unrecognized config argument(s) are detected and the + --config_rejects_unrecognized_arguments argument is enabled. """ if self.config_parse_called: return self.config