Skip to content

Commit

Permalink
Merge pull request PGScatalog#281 from ens-lgil/feature/import_non-as…
Browse files Browse the repository at this point in the history
…cii_char_msg

Clarify that the detected non-ascii character has been replaced
  • Loading branch information
ens-lgil authored Aug 31, 2023
2 parents 01f3446 + 76ceebd commit 0068762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion curation/parsers/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def replace_non_ascii_chars(self,field,value):
""" Remove/replace some of the non-ascii characters """
for char in self.non_ascii_chars.keys():
if char in value:
self.parsing_report_warning(f'Found non ascii character "{char}" for "{field}": "{value}"')
self.parsing_report_warning(f'Found non-ascii character "{char}" for "{field}": "{value}".')
value = value.replace(char, self.non_ascii_chars[char])
self.parsing_report_warning(f' -> The non-ascii character "{char}" has been fixed/replaced in the import.')
return value


Expand Down

0 comments on commit 0068762

Please sign in to comment.