Changeset 3294 for pykota/trunk/bin/pkturnkey
- Timestamp:
- 01/18/08 23:39:41 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkturnkey
r3288 r3294 29 29 import signal 30 30 31 import pykota.appinit 32 from pykota.utils import * 33 31 34 from pykota.errors import PyKotaToolError, PyKotaCommandLineError 32 35 from pykota.tool import Tool, crashed, N_ … … 226 229 from pysnmp.proto.api import alpha 227 230 except ImportError : 228 sys.stderr.write("pysnmp doesn't seem to be installed. SNMP checks will be ignored !\n")231 logerr("pysnmp doesn't seem to be installed. SNMP checks will be ignored !\n") 229 232 return 0 230 233 else : … … 528 531 retcode = manager.main(args, options) 529 532 except KeyboardInterrupt : 530 sys.stderr.write("\nInterrupted with Ctrl+C !\n")533 logerr("\nInterrupted with Ctrl+C !\n") 531 534 retcode = -3 532 535 except PyKotaCommandLineError, msg : 533 sys.stderr.write("%s : %s\n" % (sys.argv[0], msg))536 logerr("%s : %s\n" % (sys.argv[0], msg)) 534 537 retcode = -2 535 538 except SystemExit :