Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
509 B
7
Indexable
Never
log = {'Exception': '(pymysql.err.OperationalError) (2006, \'MySQL server has gone away (ConnectionResetError(104, \'Connection reset by peer\'))\')\n[SQL: SELECT id AS subtype_outcome_map_nbr FROM ***.tcare_intr_stype_otcm_map_seq]\n(Background on this error at: https://sqlalche.me/e/14/e3q8) . Line No - 203 '}
log = str(log).replace("\'",'"')

print(json_loads(str(log).replace("\'",'"')))

here itt showing error like json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 55 (char 54)
Leave a Comment