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
|
||||
:returns: object used to parse config file
|
||||
:rtype: ConfigParser object
|
||||
:raises: FileNotFoundError if path does not exist
|
||||
:raises FileNotFoundError: if path does not exist
|
||||
"""
|
||||
if not pathlib.Path(filepath).is_file():
|
||||
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
|
||||
are passed.
|
||||
:type args: str
|
||||
:raises: RepoAddError if repo-add failed
|
||||
:raises: ValueError if an invalid operation was specified
|
||||
:raises RepoAddError: if repo-add failed
|
||||
:raises ValueError: if an invalid operation was specified
|
||||
"""
|
||||
if operation == "add":
|
||||
syslog.info("Adding packages to database")
|
||||
|
Loading…
x
Reference in New Issue
Block a user