AFAIK the only exception which can occur here is one that the json.loads(..) could raise. So (TypeError or) ValueError. So except on that. and also log a warning in such case. bare excepts are 99.99% of the time simply bad/wrong. It's the case here.