Browse Source

[cli] fix error thrown if not enabling manhole

pull/38/head
andrei 8 years ago
parent
commit
d7641ce1c0
  1. 4
      disco/cli.py

4
disco/cli.py

@ -51,7 +51,8 @@ def disco_main(run=False):
config = ClientConfig()
config.manhole_enable = args.manhole
config.manhole_bind = args.manhole_bind.split(':', 1)
if config.manhole_enable:
config.manhole_bind = args.manhole_bind.split(':', 1)
for k, v in six.iteritems(vars(args)):
if hasattr(config, k) and v is not None:
@ -92,5 +93,6 @@ def disco_main(run=False):
return (bot or client)
if __name__ == '__main__':
disco_main(True)

Loading…
Cancel
Save