Commit aa916b94 authored by delanoe's avatar delanoe

[FIX] Try except for one exception, bytes and string data.

parent a537fd16
......@@ -26,7 +26,10 @@ def parse(corpus):
# uniformize the text values for easier POStagging and processing
for k in ['abstract', 'title']:
if k in hyperdata:
hyperdata[k] = normalize_chars(hyperdata[k])
try :
hyperdata[k] = normalize_chars(hyperdata[k])
except Exception as error :
print("Error normalize_chars", error)
# save as DB child
# ----------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment