Bugfix TypeError: exceptions must derive from BaseException

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-05-12 17:49:27 +03:00
parent 433dd7eb84
commit ee8eaf5ae3
4 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
3.9.8 - 12/05/2022
Bugfix:
- TypeError: exceptions must derive from BaseException
3.9.7 - 09/05/2022 3.9.7 - 09/05/2022
Fixed: Fixed:
- Stderr error output - Stderr error output

View file

@ -1,4 +1,4 @@
# slpkg 3.9.7 # slpkg 3.9.8
Slpkg is a powerful software package manager that installs, updates, and removes packages on Slpkg is a powerful software package manager that installs, updates, and removes packages on
[Slackware](http://www.slackware.com/) based systems. It automatically computes dependencies and [Slackware](http://www.slackware.com/) based systems. It automatically computes dependencies and

View file

@ -81,7 +81,7 @@ class MetaData:
__all__ = "slpkg" __all__ = "slpkg"
__author__ = "dslackw" __author__ = "dslackw"
__version_info__ = (3, 9, 7) __version_info__ = (3, 9, 8)
__version__ = "{0}.{1}.{2}".format(*__version_info__) __version__ = "{0}.{1}.{2}".format(*__version_info__)
__license__ = "GNU General Public License v3 (GPLv3)" __license__ = "GNU General Public License v3 (GPLv3)"
__email__ = "d.zlatanidis@gmail.com" __email__ = "d.zlatanidis@gmail.com"

View file

@ -225,7 +225,7 @@ def usage(repo, stderr):
else: else:
error_repo = (f"slpkg: Error: Repository '{repo}' does not exist" error_repo = (f"slpkg: Error: Repository '{repo}' does not exist"
"\n") "\n")
raise(f"\n {error_repo}") raise SystemExit(f"\n{error_repo}")
print(usage.__doc__) print(usage.__doc__)
print("For more information try 'slpkg -h, --help' or view manpage\n") print("For more information try 'slpkg -h, --help' or view manpage\n")
if stderr == 1: if stderr == 1: