/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-15 19:59:49 UTC
  • mto: This revision was merged to the branch mainline in revision 382.
  • Revision ID: teddy@recompile.se-20190315195949-km03h309lrqwl3ym
mandos-ctl: Bug fix: always shutdown logging.

* mandos-ctl: Shutdown logging at application exit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1727
1727
    return tests
1728
1728
 
1729
1729
if __name__ == "__main__":
1730
 
    if should_only_run_tests():
1731
 
        # Call using ./tdd-python-script --check [--verbose]
1732
 
        unittest.main()
1733
 
    else:
1734
 
        main()
 
1730
    try:
 
1731
        if should_only_run_tests():
 
1732
            # Call using ./tdd-python-script --check [--verbose]
 
1733
            unittest.main()
 
1734
        else:
 
1735
            main()
 
1736
    finally:
 
1737
        logging.shutdown()