mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
update_api.py: Remove usage of MKException.
This wasn't working as it was being accessed from a function object rather than the module. Instead, let's just print the error and exit.
This commit is contained in:
parent
8a3556e5ba
commit
a3161bdc15
|
@ -16,7 +16,6 @@ emit some of the files required for Z3's different
|
||||||
language bindings.
|
language bindings.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import mk_exception
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
@ -1700,8 +1699,8 @@ def def_APIs(api_files):
|
||||||
m = pat2.match(line)
|
m = pat2.match(line)
|
||||||
if m:
|
if m:
|
||||||
eval(line)
|
eval(line)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
raise mk_exec_header.MKException("Failed to process API definition: %s" % line)
|
error('ERROR: While processing: %s: %s\n' % (e, line))
|
||||||
|
|
||||||
def write_log_h_preamble(log_h):
|
def write_log_h_preamble(log_h):
|
||||||
log_h.write('// Automatically generated file\n')
|
log_h.write('// Automatically generated file\n')
|
||||||
|
|
Loading…
Reference in a new issue