diff --git a/eta/core/image.py b/eta/core/image.py index f4d923b5..b6d8dbdc 100644 --- a/eta/core/image.py +++ b/eta/core/image.py @@ -1122,7 +1122,11 @@ def render_bounding_box(polyline): Returns: a BoundingBox """ - xx, yy = zip(*list(itertools.chain(*polyline.points))) + try: + xx, yy = zip(*list(itertools.chain(*polyline.points))) + except ValueError: + return etag.BoundingBox.empty() + xtl = min(xx) ytl = min(yy) xbr = max(xx)