summaryrefslogtreecommitdiffstats
path: root/cds-regression-test/cba/cba/remote-python/Scripts/python/FailingRemotePython.py
blob: 672492d0cd1ac1cb8550ec11fe89cdd59f6f1a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python

import sys
from cds_utils.payload_coder import send_response_data_payload

if __name__ == "__main__":
    try:
        raise Exception("Intentionally raised exception!")
    except Exception as e:
        print("Intentionally raised exception!")
        resp_data = {
            "errorMessage": "Intentionally raised exception!"
        }
        send_response_data_payload(resp_data)
    sys.exit(1)