diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-01-10 11:30:32 -0600 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-01-10 11:30:32 -0600 |
commit | d1754c2bb59a0863bb685d2343910bff6ef8d5b3 (patch) | |
tree | 6523076ebc8b17981f1b377b46eb3b46c612702b /src/sbin | |
parent | c14c6e8b2460b9fd5aeacaa0e68aad4971390e8e (diff) | |
download | bcfg2-d1754c2bb59a0863bb685d2343910bff6ef8d5b3.tar.gz bcfg2-d1754c2bb59a0863bb685d2343910bff6ef8d5b3.tar.bz2 bcfg2-d1754c2bb59a0863bb685d2343910bff6ef8d5b3.zip |
bcfg2-admin: Fix multiple errors
* Handle keyboard interrupts (fixes a traceback)
* Fix default plugin list (missing punctuation)
* Various PEP8 fixes
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/bcfg2-admin | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin index 872ecef0f..2c9a43859 100755 --- a/src/sbin/bcfg2-admin +++ b/src/sbin/bcfg2-admin @@ -77,4 +77,7 @@ def main(): raise SystemExit(1) if __name__ == '__main__': - main() + try: + main() + except KeyboardInterrupt: + raise SystemExit(1) |