Closed chennin closed 3 years ago
Move the try up so it swallows json.load() errors as well. Fixes #45
try
json.load()
It's OK for the return to be blank because focus is only compared to constant numbers and not used where it might be bad to be None
focus
This should allow screenshots to continue to be processed, but possibly without cropping, when getGuiFocus() fails.
getGuiFocus()
I haven't actually tested this as I am nowhere near that body anymore. Please review!
Move the
try
up so it swallowsjson.load()
errors as well. Fixes #45It's OK for the return to be blank because
focus
is only compared to constant numbers and not used where it might be bad to be NoneThis should allow screenshots to continue to be processed, but possibly without cropping, when
getGuiFocus()
fails.I haven't actually tested this as I am nowhere near that body anymore. Please review!