mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-11-23 00:43:42 +00:00
review exception raise
In some cases for better readability of logs, exceptions are now raised without parent exception stacktrace. Also updated docs and contributing guidelines
This commit is contained in:
@ -81,7 +81,7 @@ class Search(Handler):
|
||||
list[AURPackage]: sorted list for packages
|
||||
|
||||
Raises:
|
||||
InvalidOption: if search fields is not in list of allowed ones
|
||||
OptionError: if search fields is not in list of allowed ones
|
||||
"""
|
||||
if sort_by not in Search.SORT_FIELDS:
|
||||
raise OptionError(sort_by)
|
||||
|
||||
Reference in New Issue
Block a user