From 7a8ff692ae9b7ce8389071f6396b81666fa37b7c Mon Sep 17 00:00:00 2001 From: jomae Date: Mon, 10 Jun 2024 07:17:27 +0000 Subject: [PATCH] 1.6.1dev: correct wrong `email.errors` module name git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17822 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- trac/util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trac/util/__init__.py b/trac/util/__init__.py index 4b3ecf4370..f4804e01ba 100644 --- a/trac/util/__init__.py +++ b/trac/util/__init__.py @@ -856,7 +856,7 @@ def has_resource(dist, module, resource_name): if any('.'.join(names[:n + 1]) in provides for n in range(len(names))): return True - except (IOError, email.Errors.MessageError): + except (IOError, email.errors.MessageError): pass toplevel = resource_name.split('/')[0] if dist.has_metadata('top_level.txt'):