Commit 0f244b2f authored by Marco Mariani's avatar Marco Mariani

removed comments

parent f15e0158
......@@ -64,17 +64,11 @@ class RegisterCommand(Command):
return ap
def take_action(self, args):
#if args.password and not args.login:
# # XXX we don't have the parser now, maybe could be handled with an argument group?
# ap.error('Please enter your login with your password')
try:
conf = RegisterConfig(logger=self.log)
conf.setConfig(args)
return_code = do_register(conf)
except SystemExit, err:
# Catch exception raised by optparse
# XXX returning exception with sys.exit?
except SystemExit as err:
return_code = err
sys.exit(return_code)
......@@ -101,8 +101,6 @@ def main():
conf.setConfig(args)
return_code = do_register(conf)
except SystemExit as exc:
# Catch exception raised by optparse
# XXX returning exception with sys.exit?
return_code = exc
sys.exit(return_code)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment