fias icon indicating copy to clipboard operation
fias copied to clipboard

Unknown abbrevation: гп

Open ex0rcist opened this issue 7 years ago • 2 comments

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?

ex0rcist avatar Aug 12 '16 11:08 ex0rcist

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

gzigzigzeo avatar Aug 12 '16 12:08 gzigzigzeo

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 ?

ex0rcist avatar Aug 12 '16 15:08 ex0rcist