Commits

Maciej Fijalkowski committed e8c1a03

fix tests

  • Participants
  • Parent commits 1e2a0ea

Comments (0)

Files changed (1)

                     no = int(comment[len('# bridge out of Guard '):].split(' ', 1)[0])
                     op, parent = guard_dict[no]
                     op.bridge = loop
-                    op.percentage = (loop.count * 100) / parent.count
+                    op.percentage = ((getattr(loop, 'count', 1) * 100) /
+                                     getattr(parent, 'count', 1))
                     loop.no = no
                     continue
             res.append(loop)