mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +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:
|
||||
arguments[args[0]]()
|
||||
except (KeyError, IndexError) as err:
|
||||
except (KeyError, IndexError):
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info('%s: %s', main.__name__, err)
|
||||
logger.exception('%s:', main.__name__)
|
||||
usage.help_short(1)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue