RafalBuchner / StemThickness

Apache License 2.0
29 stars 13 forks source link

Errors when there are no paths #4

Closed simoncozens closed 6 years ago

simoncozens commented 7 years ago

Here's the logic leading up to line 460:

            closestPathTime = None
            dist = 100000
            for path in layer.paths:
                # stuff
            n = math.floor(closestPathTime)

To avoid spamming the error log, you want something like:

            if not closestPathTime:
                return

in there.

RafalBuchner commented 7 years ago

Thanks Simon, I will look into that

simoncozens commented 6 years ago

Merged with #6.