I have a macro running on regular times that send api code by jsonconverter.

in the jsonconvertrt script there is teh line :
Please Login or Register  to view this content.
the last part says error on invalid jsonstring
and if this is the case he 'debug' in the line err.raise 10001 ...

that mean my macro stop,(mostly just after midnight) and then proggram not run the whole night.
How can I avoid that it stop ? (and do no harm when it go on)