Skip to content

Commit

Permalink
isinstance upd
Browse files Browse the repository at this point in the history
  • Loading branch information
nvmbrasserie committed Nov 21, 2024
1 parent 83561a1 commit 9b01d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdnum/ru/ogrn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9b01d76

Please sign in to comment.