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

removed comments

parent f15e0158
...@@ -64,17 +64,11 @@ class RegisterCommand(Command): ...@@ -64,17 +64,11 @@ class RegisterCommand(Command):
return ap return ap
def take_action(self, args): 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: try:
conf = RegisterConfig(logger=self.log) conf = RegisterConfig(logger=self.log)
conf.setConfig(args) conf.setConfig(args)
return_code = do_register(conf) return_code = do_register(conf)
except SystemExit, err: except SystemExit as err:
# Catch exception raised by optparse
# XXX returning exception with sys.exit?
return_code = err return_code = err
sys.exit(return_code) sys.exit(return_code)
...@@ -101,8 +101,6 @@ def main(): ...@@ -101,8 +101,6 @@ def main():
conf.setConfig(args) conf.setConfig(args)
return_code = do_register(conf) return_code = do_register(conf)
except SystemExit as exc: except SystemExit as exc:
# Catch exception raised by optparse
# XXX returning exception with sys.exit?
return_code = exc return_code = exc
sys.exit(return_code) 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