Port Python sources to Python 3 syntax
This commit is contained in:
@@ -58,7 +58,7 @@ if __name__ == '__main__':
|
||||
try:
|
||||
options.authpass = getpass.getpass(_("Enter password for %s: ") % options.authuser)
|
||||
except KeyboardInterrupt:
|
||||
print
|
||||
print()
|
||||
sys.exit(1)
|
||||
|
||||
log.debug("running command: %s", str(command))
|
||||
@@ -75,14 +75,14 @@ if __name__ == '__main__':
|
||||
try:
|
||||
ret = command.run(options, args)
|
||||
except KeyboardInterrupt:
|
||||
print
|
||||
print()
|
||||
sys.exit(1)
|
||||
except SystemExit:
|
||||
raise
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
log.debug("Error at bongo-admintool main()", exc_info=1)
|
||||
ret = 1
|
||||
print _("ERROR: %s") % str(e)
|
||||
print(_("ERROR: %s") % str(e))
|
||||
|
||||
if ret is None:
|
||||
sys.exit(0)
|
||||
|
||||
Reference in New Issue
Block a user