mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-05 11:02:14 +01:00
Updated for try block
This commit is contained in:
parent
1fcf8d21fe
commit
cd2d1848dd
1 changed files with 6 additions and 6 deletions
|
@ -823,12 +823,12 @@ def main():
|
||||||
'-t': argparse.tracking
|
'-t': argparse.tracking
|
||||||
}
|
}
|
||||||
|
|
||||||
#try:
|
try:
|
||||||
arguments[args[0]]()
|
arguments[args[0]]()
|
||||||
#except (KeyError, IndexError) as err:
|
except (KeyError, IndexError) as err:
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.info('%s: %s', main.__name__, err)
|
logger.info('%s: %s', main.__name__, err)
|
||||||
usage.help_short(1)
|
usage.help_short(1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue