Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown abbrevation: гп #16

Open
ex0rcist opened this issue Aug 12, 2016 · 2 comments
Open

Unknown abbrevation: гп #16

ex0rcist opened this issue Aug 12, 2016 · 2 comments

Comments

@ex0rcist
Copy link
Contributor

Got "Unknown abbrevation: гп" exception today, here: https://github.com/evilmartians/fias/blob/master/lib/fias/name/canonical.rb#L7

Using this method to pretty-print fias-object's name, like

def readble
  ::Fias::Name::Append.append(formalname, shortname).first
end

Am I doing it wrong? Should I add rescue there, or add abbrevation somewhere?

@gzigzigzeo
Copy link
Member

Hi. Probably, it's just new abbrevation? Does it exists in shortnames table within FIAS database itself?

@ex0rcist
Copy link
Contributor Author

I'm importing only fias_objects table, so cant say exactly if it is in shortnames table, but it definitly exists in objects table. Added rescue for now, because unhandled exception is breaking homepage :) Should we add 'пг' in https://github.com/evilmartians/fias/blob/master/config/synonyms.yml ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants