From 9b01d76c40c67776e232350c35a7aaeba217a88d Mon Sep 17 00:00:00 2001 From: nvmbrasserie Date: Thu, 21 Nov 2024 12:16:31 +0100 Subject: [PATCH] isinstance upd --- stdnum/ru/ogrn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdnum/ru/ogrn.py b/stdnum/ru/ogrn.py index 12e411b5..da0dd627 100644 --- a/stdnum/ru/ogrn.py +++ b/stdnum/ru/ogrn.py @@ -71,7 +71,7 @@ def validate(text): def format(text): """Normalize the given string to a valid OGRN.""" - if not isinstance(text): + if not isinstance(text, str): return None match = re.compile(r'\b(\d{13}|\d{15})\b').search(text) if match is None: