Fix incorrect raises docstrings
This commit is contained in:
parent
9fea509235
commit
7ec7d05f50
@ -17,7 +17,7 @@ def parse_configfile(filepath):
|
|||||||
:type path: str, bytes, or path-like object
|
:type path: str, bytes, or path-like object
|
||||||
:returns: object used to parse config file
|
:returns: object used to parse config file
|
||||||
:rtype: ConfigParser object
|
:rtype: ConfigParser object
|
||||||
:raises: FileNotFoundError if path does not exist
|
:raises FileNotFoundError: if path does not exist
|
||||||
"""
|
"""
|
||||||
if not pathlib.Path(filepath).is_file():
|
if not pathlib.Path(filepath).is_file():
|
||||||
raise FileNotFoundError(f"{filepath} does not exist")
|
raise FileNotFoundError(f"{filepath} does not exist")
|
||||||
|
@ -34,8 +34,8 @@ def db_modify(operation, db, *args):
|
|||||||
files are passed. Removing requires that the names of the packages
|
files are passed. Removing requires that the names of the packages
|
||||||
are passed.
|
are passed.
|
||||||
:type args: str
|
:type args: str
|
||||||
:raises: RepoAddError if repo-add failed
|
:raises RepoAddError: if repo-add failed
|
||||||
:raises: ValueError if an invalid operation was specified
|
:raises ValueError: if an invalid operation was specified
|
||||||
"""
|
"""
|
||||||
if operation == "add":
|
if operation == "add":
|
||||||
syslog.info("Adding packages to database")
|
syslog.info("Adding packages to database")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user