Skip to content

Commit

Permalink
Fix for bad data received from Euronext
Browse files Browse the repository at this point in the history
  • Loading branch information
titov-vv committed Jun 29, 2024
1 parent 8de2fb6 commit 4ad0bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jal/net/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def Euronext_DataReader(self, asset, currency_id, start_timestamp, end_timestamp
if quotes_text[2] != asset.isin():
logging.warning(self.tr("Euronext quotes ISIN mismatch in: ") + quotes)
return None
quotes_text = [x.lstrip("'") for x in quotes_text] # Some lines have occasional quote at first position
quotes_text = [x.replace("'", "") for x in quotes_text] # Some lines have occasional quote in some places
quotes = "\n".join(quotes_text)
file = StringIO(quotes)
try:
Expand Down

0 comments on commit 4ad0bb8

Please sign in to comment.