This is an automated email from the ASF dual-hosted git repository. dill0wn pushed a commit to branch dw/8565 in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/dw/8565 by this push: new cf143c161 fixup! fix import for pymongo4 cf143c161 is described below commit cf143c161ea140b01325cd0d889c997918f96964 Author: Dillon Walls <dillon.wa...@slashdotmedia.com> AuthorDate: Tue Jul 23 11:11:04 2024 -0400 fixup! fix import for pymongo4 --- Allura/allura/lib/helpers.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Allura/allura/lib/helpers.py b/Allura/allura/lib/helpers.py index 580b4ba73..4ac03e2ae 100644 --- a/Allura/allura/lib/helpers.py +++ b/Allura/allura/lib/helpers.py @@ -51,11 +51,8 @@ import pkg_resources from formencode.validators import FancyValidator from dateutil.parser import parse from bson import ObjectId +from bson.errors import InvalidId from paste.deploy import appconfig -try: - from pymongo.errors import InvalidId -except ImportError: - from bson.errors import InvalidId from contextlib import contextmanager from tg import tmpl_context as c, app_globals as g from tg import response, request