mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Set for production
This commit is contained in:
parent
400a7f03bc
commit
a8eb9077ac
1 changed files with 10 additions and 10 deletions
|
@ -824,18 +824,18 @@ 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)
|
||||
|
||||
# For development mode.
|
||||
arguments[args[0]]()
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info('%s: %s', main.__name__, err)
|
||||
usage.help_short(1)
|
||||
# arguments[args[0]]()
|
||||
# logger = logging.getLogger(__name__)
|
||||
# logger.info('%s: %s', main.__name__, err)
|
||||
# usage.help_short(1)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue