paukstelis / Octoprint-Cancelobject

104 stars 11 forks source link

Fixed Freazing problem on Python3 #61

Closed mirokymac closed 3 years ago

mirokymac commented 3 years ago

Since in Python3 filter return Iter not List, len() will raise exception.

paukstelis commented 3 years ago

I noticed this issue once, but when I tried to replicate with another Python 3 setup, I did not see this error. This may be version specific. Can you confirm this PR does not lead to issues with Python 2 implementations?

mirokymac commented 3 years ago

This fix is originally tested by 3.8.6.

I have just checked with 2.7.18, no error occured.