Skip to content

Commit

Permalink
Fixing bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Agris Ameriks committed Aug 24, 2013
1 parent 44ea7ac commit e1f02ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crediweb/utils.py
Expand Up @@ -120,7 +120,7 @@ def get_address(address, country="Latvia"):
else:
address = replace_text(address, country)

if address.get('country') == "Latvia":
if return_dict.get('country') == "Latvia":
regex = re.compile("LV[-]{0,1}[0-9]{4}", re.IGNORECASE|re.UNICODE)
postal_code = regex.findall(address)
if postal_code:
Expand Down

0 comments on commit e1f02ab

Please sign in to comment.