Fix incorrect raises docstrings

This commit is contained in:
Eric Torres 2019-04-14 08:51:38 -07:00
parent 9fea509235
commit 7ec7d05f50
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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")