codito/habito

Exception on edit

codito opened this issue · 0 comments

> habito edit -q 2 2                                                                                                                                                                               
Traceback (most recent call last):
  File "/home/arun/src/gh/habito/.venv/bin/habito", line 33, in <module>
    sys.exit(load_entry_point('habito', 'console_scripts', 'habito')())
  File "/home/arun/src/gh/habito/.venv/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/arun/src/gh/habito/.venv/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/arun/src/gh/habito/.venv/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/arun/src/gh/habito/.venv/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/arun/src/gh/habito/.venv/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/arun/src/gh/habito/habito/habito.py", line 121, in edit
    habit.name = name.strip() or habit.name
AttributeError: 'NoneType' object has no attribute 'strip'