X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/0c2752278f9a18ba11cd2e92d7a7e573eda2e730..5818b61929dbef0d50482028e99b2c96e13b6bbd:/src/gridf3.py diff --git a/src/gridf3.py b/src/gridf3.py index ac7fa2a..f5e6edb 100644 --- a/src/gridf3.py +++ b/src/gridf3.py @@ -125,7 +125,7 @@ def gen_corners(d1, d2): # TODO create an intersection? try: yield manual.lines(map(lambda p: p.to_tuple(), [c2, c1, c3, c4])) - except TypeError: + except (TypeError, ZeroDivisionError): pass # the square was too small to fit 17 lines inside # TODO define SquareTooSmallError or something