1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-06-16 15:06:53 +00:00

remove debugging prints

This commit is contained in:
Anson Biggs 2021-11-07 11:44:15 -07:00
parent 6d269c7466
commit a9b157cb4d

View File

@ -70,11 +70,9 @@ class IEX_Symbol:
# Make sure API returned valid JSON # Make sure API returned valid JSON
try: try:
resp_json = resp.json() resp_json = resp.json()
print(type(resp_json))
# IEX uses backtick ` as apostrophe which breaks telegram markdown parsing # IEX uses backtick ` as apostrophe which breaks telegram markdown parsing
if type(resp_json) is dict: if type(resp_json) is dict:
print("Fixing format ` to '")
resp_json["companyName"] = resp_json.get("companyName", "").replace( resp_json["companyName"] = resp_json.get("companyName", "").replace(
"`", "'" "`", "'"
) )