From 7ec7d05f5004e892c6c512c76087eb1349a5088b Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Sun, 14 Apr 2019 08:51:38 -0700 Subject: [PATCH] Fix incorrect raises docstrings --- packaging_scripts/pacmanconf.py | 2 +- packaging_scripts/repos.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging_scripts/pacmanconf.py b/packaging_scripts/pacmanconf.py index 674457f..5b51a68 100644 --- a/packaging_scripts/pacmanconf.py +++ b/packaging_scripts/pacmanconf.py @@ -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") diff --git a/packaging_scripts/repos.py b/packaging_scripts/repos.py index d909b07..9ba3798 100644 --- a/packaging_scripts/repos.py +++ b/packaging_scripts/repos.py @@ -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")