diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2020-03-04 00:12:03 +0100 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2020-03-04 00:12:45 +0100 |
commit | 4a9981ee77e92f51d07f6a1f2993f94d5f4cfb94 (patch) | |
tree | 999397b2091f7856ccf2b9aae9baa47eb102e6a9 /3rdparty | |
parent | 5fa10e1a9522d626f48d2a70eb58e96c39226212 (diff) | |
download | nextpnr-4a9981ee77e92f51d07f6a1f2993f94d5f4cfb94.tar.gz nextpnr-4a9981ee77e92f51d07f6a1f2993f94d5f4cfb94.tar.bz2 nextpnr-4a9981ee77e92f51d07f6a1f2993f94d5f4cfb94.zip |
pycontainers: Properly handle KeyErrors
We raise a C++ exception to abort the rest of the execution of
the function.
At the same time we standardize on using a throw runtime error as the
method to avoid warning when not returning values. (some places
used this throw and some other used std::terminate)
Fixes #403
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to '3rdparty')
0 files changed, 0 insertions, 0 deletions