File: 0003-Use-old-i18n-address-error-class.patch

package info (click to toggle)
xml2rfc 3.30.2-1
  • links: PTS, VCS
  • area: non-free
  • in suites:
  • size: 2,564 kB
  • sloc: python: 14,266; xml: 335; javascript: 167; makefile: 9; sh: 1
file content (22 lines) | stat: -rw-r--r-- 943 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Scott Kitterman <scott@kitterman.com>
Date: Wed, 28 Jun 2023 00:50:22 -0400
Subject: Use old i18n-address error class

Forwarded: not-needed
---
 xml2rfc/util/postal.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xml2rfc/util/postal.py b/xml2rfc/util/postal.py
index 8ec6295..3faf632 100644
--- a/xml2rfc/util/postal.py
+++ b/xml2rfc/util/postal.py
@@ -187,7 +187,7 @@ def get_normalized_address_info(writer, x, latin=False):
                                " Available elements for %s are: %s" % (address_field_elements[e], adr[e], country_info.name, ', '.join(elements)))
         try:
             i18naddress.normalize_address(adr)
-        except i18naddress.InvalidAddressError as e:
+        except i18naddress.InvalidAddress as e:
             list_parts = True
             writer.note(x, "Postal address check failed for author %s." % full_author_name(author, latin))
             for item in e.errors: