Handling Errors

The session raises RequestError for failed requests. The error contains the raw response and can be catched like this:

from gst_irn import RequestError

try:
    session.generate_e_invoice()
except RequestError as err:
    resp_json = err.args[1]
← Documentation of the Library