#759·codon

Exception catching is broken in JIT mode

Author: yfinkelsteinCreated Feb 25, 2026Updated Mar 26, 2026
try: 
	raise RuntimeError("exception is thrown")

except Exception as e:
	print(f"caught exception {e=}")

codon run excepton_test.codon

RuntimeError: exception is thrown

Raised from: 
.../exception_test.codon:2:2

Backtrace:
Aborted

However, if built first then it works:

codon build excepton_test.codon
./excepton_test.codon

caught exception e=exception is thrown