Updated for try block

This commit is contained in:
Dimitris Zlatanidis 2023-04-08 17:14:34 +03:00
parent 1fcf8d21fe
commit cd2d1848dd

View file

@ -823,12 +823,12 @@ def main():
'-t': argparse.tracking
}
#try:
arguments[args[0]]()
#except (KeyError, IndexError) as err:
logger = logging.getLogger(__name__)
logger.info('%s: %s', main.__name__, err)
usage.help_short(1)
try:
arguments[args[0]]()
except (KeyError, IndexError) as err:
logger = logging.getLogger(__name__)
logger.info('%s: %s', main.__name__, err)
usage.help_short(1)
if __name__ == '__main__':