kelesi / mtga-utils

Magic the Gathering: Arena related stuff (Card collection export)
MIT License
53 stars 13 forks source link

Error in case Detailed Logs are disabled #25

Closed ElLorans closed 4 years ago

ElLorans commented 4 years ago

Right now, mtga-utils prints "Error: Could not parse json data: Expecting value: line 1 column 1 (char 0)" if Detailed Logs are disabled. Would it be possible to add something like

if "DETAILED LOGS: DISABLED" in logfile.read():
                print('DETAILED LOGS (PLUGIN SUPPORT) ARE DISABLED.\nPlease Log into Arena and go to "Adjust Options";\nclick on "View Account"; check the “Detailed Logs (Plugin Support)” button and restart the game.')

?

kelesi commented 4 years ago

Thanks for suggestion. Implemented in v0.3.8.