Reading FCA results in invalid countries #12
Labels
Priority: Medium
Issue should be integrated in the next release
Status: Completed
This issue has been solved and can be integrated to development branch
Type: Bug
Something isn't behaving as expected
Milestone
Description
Reading FCA files shows messages saying that some countries are invalid.
Steps to reproduce
cvm.fca_reader()
Expected behavior
Reading countries from FCA documents shouldn't result in any failure messages.
Country
fields should be thus optional. If a country is valid, aCountry
object corresponding to that country should be created. Otherwise, a warning message should be printed to inform that a country name is unknown, and None should be used instead.This library may also interpret typos, such as "Brasi" and "Espanhã", and translate them to their corresponding
Country
.Actual behavior
FCA of 2017 results in the following messages related to invalid country, some of which are errors:
Additional context
This is another bug like #9 which is not coming from this library, but rather from CVM's side. It seems the ENET software does not enforce valid name for countries, which results in country names such as "Espanhã", "Brasi", or even "..............." (LOL).
The text was updated successfully, but these errors were encountered: