From 8c91e3df875319768b6699ccf7654ccb5a357c6d Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 5 Jan 2019 11:18:34 +0100 Subject: controller: Fix PrefixLimit Probably broken by the transition to URL() in commit 5e444dd6511d97308a84ae9c86ebf14547d01f01 And yes, we desperately need some tests for this. --- crocoite/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crocoite/controller.py b/crocoite/controller.py index a64a8dc..d6f6d7a 100644 --- a/crocoite/controller.py +++ b/crocoite/controller.py @@ -265,7 +265,7 @@ class PrefixLimit (RecursionPolicy): self.prefix = prefix def __call__ (self, urls): - return set (filter (lambda u: u.startswith (self.prefix), urls)) + return set (filter (lambda u: str(u).startswith (str (self.prefix)), urls)) class RecursiveController: """ -- cgit v1.2.3