mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Updated for logging exception
This commit is contained in:
parent
191cb576e7
commit
43ccf008ec
1 changed files with 2 additions and 2 deletions
|
@ -825,9 +825,9 @@ def main() -> None:
|
||||||
|
|
||||||
try:
|
try:
|
||||||
arguments[args[0]]()
|
arguments[args[0]]()
|
||||||
except (KeyError, IndexError) as err:
|
except (KeyError, IndexError):
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.info('%s: %s', main.__name__, err)
|
logger.exception('%s:', main.__name__)
|
||||||
usage.help_short(1)
|
usage.help_short(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue