Merge pull request #16754 from deepeshgarg007/state_code

fix: State code issue fix
This commit is contained in:
Saurabh
2019-02-21 18:21:24 +05:30
committed by GitHub

View File

@@ -300,6 +300,9 @@ def get_progressive_name_and_number(doc):
return progressive_name, progressive_number
def set_state_code(doc, method):
if not doc.get('state'):
return
if not (hasattr(doc, "state_code") and doc.country in ["Italy", "Italia", "Italian Republic", "Repubblica Italiana"]):
return