{"action":"opened","issue":{"url":"https://api.github.com/repos/kcaa/kcaa/issues/283","labels_url":"https://api.github.com/repos/kcaa/kcaa/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/kcaa/kcaa/issues/283/comments","events_url":"https://api.github.com/repos/kcaa/kcaa/issues/283/events","html_url":"https://github.com/kcaa/kcaa/issues/283","id":83105869,"number":283,"title":"Fix the \"hit point not initialized\" bug in remodeling result?","user":{"login":"kcaa","id":7412002,"avatar_url":"https://avatars.githubusercontent.com/u/7412002?v=3","gravatar_id":"","url":"https://api.github.com/users/kcaa","html_url":"https://github.com/kcaa","followers_url":"https://api.github.com/users/kcaa/followers","following_url":"https://api.github.com/users/kcaa/following{/other_user}","gists_url":"https://api.github.com/users/kcaa/gists{/gist_id}","starred_url":"https://api.github.com/users/kcaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcaa/subscriptions","organizations_url":"https://api.github.com/users/kcaa/orgs","repos_url":"https://api.github.com/users/kcaa/repos","events_url":"https://api.github.com/users/kcaa/events{/privacy}","received_events_url":"https://api.github.com/users/kcaa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kcaa/kcaa/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-31T14:59:19Z","updated_at":"2015-05-31T14:59:19Z","closed_at":null,"body":"Here is the log, but I can't find any culprit from the code:\r\n\r\n    23:52:41 DEBUG: Resuming auto triggerer AutoWarmUpIdleShips\r\n    23:52:41 ERROR: AttributeError: 'NoneType' object has no attribute 'ratio'\r\n    23:52:41 DEBUG: Traceback (most recent call last):\r\n      File \"/home/eplusx/kcaa/server/kcaa/task.py\", line 302, in update\r\n        delay = self._iterator.next()\r\n      File \"/home/eplusx/kcaa/server/kcaa/manipulators/base.py\", line 122, in run\r\n        params = self.manipulator.can_trigger(self, *args, **kwargs)\r\n      File \"/home/eplusx/kcaa/server/kcaa/manipulators/expedition.py\", line 680, in can_trigger\r\n        ships_to_repair = [s for s in ship_list.repairable_ships(fleet_list) if\r\n      File \"/home/eplusx/kcaa/server/kcaa/kcsapi/ship.py\", line 556, in repairable_ships\r\n        return [ship for ship in self.damaged_ships() if\r\n      File \"/home/eplusx/kcaa/server/kcaa/kcsapi/ship.py\", line 549, in damaged_ships\r\n        ship.hitpoint.ratio < 1]\r\n    AttributeError: 'NoneType' object has no attribute 'ratio'"}}