diff options
author | dimdim11 <dimdim11@yandex-team.com> | 2024-10-14 07:56:25 +0300 |
---|---|---|
committer | dimdim11 <dimdim11@yandex-team.com> | 2024-10-14 08:06:48 +0300 |
commit | 528253bc04da05a8e6a431bf5fca8101a5d98cad (patch) | |
tree | 6f4689d14277914df963832414b8801fa3609e7b | |
parent | ae0b01e1000f64d9b99542537d673f7a670ef1de (diff) | |
download | ydb-528253bc04da05a8e6a431bf5fca8101a5d98cad.tar.gz |
Exception in dart record to configure error
Exception in dart record to configure error
commit_hash:8049407cc511949d056055e27c205a2fc87046cb
-rw-r--r-- | build/plugins/_dart_fields.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/build/plugins/_dart_fields.py b/build/plugins/_dart_fields.py index 34f13579a2..423eceb8c9 100644 --- a/build/plugins/_dart_fields.py +++ b/build/plugins/_dart_fields.py @@ -31,7 +31,14 @@ class DartValueError(ValueError): def create_dart_record(fields, *args): - return reduce(operator.or_, (value for field in fields if (value := field(*args))), {}) + try: + return reduce(operator.or_, (value for field in fields if (value := field(*args))), {}) + except Exception as e: + if str(e) != "": + ymake.report_configure_error("Exception: {}".format(e)) + else: + raise (e) + return None def with_fields(fields): |