Skip to content

if no activity or tags input, don't proceed to start tracking

Created by: tkdchen

Following crash happens when user starts tracking without entering Activity, Tags, or both.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/hamster/today.py", line 451, in on_switch_activity_clicked
    tags = self.new_tags.get_text().decode("utf8", "replace"))
  File "/usr/lib/python2.7/site-packages/hamster/lib/__init__.py", line 52, in __init__
    input_parts = activity.strip().split(" ")
AttributeError: 'NoneType' object has no attribute 'strip'

Merge request reports

Loading