MCPcopy Create free account
hub / github.com/ActiveState/code / error_exit

Function error_exit

recipes/Python/578979_Convert_JSPDF/recipe-578979.py:5–7  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

3from PDFWriter import PDFWriter
4
5def error_exit(message):
6 sys.stderr.write(message)
7 sys.exit(1)
8
9def JSONtoPDF(json_data):
10 # Get the data values from the JSON string json_data.

Callers 1

JSONtoPDFFunction · 0.70

Calls 2

writeMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected