Changeset 3076
- Timestamp:
- 11/28/06 22:32:21 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pknotify
r3075 r3076 38 38 hasPAM = 1 39 39 40 from pykota.tool import Tool, PyKota CommandLineError, crashed, N_40 from pykota.tool import Tool, PyKotaToolError, PyKotaCommandLineError, crashed, N_ 41 41 42 42 __doc__ = N_("""pknotify v%(__version__)s (c) %(__years__)s %(__author__)s … … 179 179 """Checks if we could authenticate an username with a password.""" 180 180 if not hasPAM : 181 raise PyKota CommandLineError, _("You MUST install PyPAM for this functionnality to work !")181 raise PyKotaToolError, _("You MUST install PyPAM for this functionnality to work !") 182 182 else : 183 183 retcode = False … … 298 298 if errnum == errno.ECONNREFUSED : 299 299 self.printInfo(_("Are you sure that PyKotIcon is running and accepting incoming connections on %s:%s ?") % (self.destination, self.port), "error") 300 raise PyKota CommandLineError, "%s : %s" % (_("Connection error"), str(msg))300 raise PyKotaToolError, "%s : %s" % (_("Connection error"), str(msg)) 301 301 except TimeoutError, msg : 302 302 self.printInfo(msg, "warn") … … 361 361 except PyKotaCommandLineError, msg : 362 362 sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 363 print "CANCEL" # Forces the cancellation of the print job if a command line switch is incorrect 363 364 retcode = -2 364 365 except SystemExit :