Skip to content

Commit 53d6538

Browse files
committed
flake8
1 parent 879959d commit 53d6538

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/collective/collectionfilter/baseviews.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from plone import api
1616
from plone.api.portal import get_registry_record as getrec
1717
from plone.app.uuid.utils import uuidToCatalogBrain
18-
from plone.app.uuid.utils import uuidToObject
1918
from plone.i18n.normalizer.interfaces import IIDNormalizer
2019
from plone.memoize import instance
2120
from plone.uuid.interfaces import IUUID
@@ -323,7 +322,7 @@ def __call__(self):
323322

324323
try:
325324
limit = int(self.request.get("geojson-limit"))
326-
except:
325+
except Exception:
327326
limit = 500
328327

329328
for it in locations:
@@ -378,4 +377,4 @@ def locations(self):
378377
custom_query = make_query(custom_query)
379378
return self.context.results(
380379
batch=False, brains=True, custom_query=custom_query
381-
)
380+
)

0 commit comments

Comments
 (0)