finbourne-sdk-utils 0.0.29__py3-none-any.whl → 0.0.30__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -346,8 +346,11 @@ def set_attributes_recursive(
346
346
 
347
347
  class_alias = getattr(instance, discriminator_field )
348
348
 
349
- actual_class = class_map[class_alias]
350
-
349
+ try:
350
+ actual_class = class_map[class_alias]
351
+ except KeyError as e:
352
+ raise ValueError(f"Could not find a class for the discriminator value {class_alias} in the class map {class_map}") from e
353
+
351
354
  return set_attributes_recursive(
352
355
  model_object=getattr(lusid.models, actual_class), mapping=mapping, row=row,
353
356
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: finbourne-sdk-utils
3
- Version: 0.0.29
3
+ Version: 0.0.30
4
4
  Summary: Python utilities for LUSID V2 SDK
5
5
  Home-page: https://github.com/finbourne/finbourne-sdk-utils
6
6
  Author: FINBOURNE Technology
@@ -11,7 +11,7 @@ finbourne_sdk_utils/cocoon/properties.py,sha256=wxGZDopWSg_hruCwADYRuWI9ZiXBvG3q
11
11
  finbourne_sdk_utils/cocoon/seed_sample_data.py,sha256=SYvuq08j8BbzE3uQMoTmS-xrNtbJ2IRg6KJ1PBm-uVI,4390
12
12
  finbourne_sdk_utils/cocoon/systemConfiguration.py,sha256=qheX-jVTaKuD34DSJn57RyTu4jlLMyXjkSYGVe8goIM,3284
13
13
  finbourne_sdk_utils/cocoon/transaction_type_upload.py,sha256=xASAzh7ycOzksW--azya-QMtgci48w4phfhyxw7v-gg,4439
14
- finbourne_sdk_utils/cocoon/utilities.py,sha256=Hl8YtY1lXpvx2bXVMiWoVUHX0WHC9MhooV7cLE6_qwI,62914
14
+ finbourne_sdk_utils/cocoon/utilities.py,sha256=3YNRll7OlxtCZIPlyvSyBiw9KWpLMTBI1pHCX6J6A_w,63103
15
15
  finbourne_sdk_utils/cocoon/validator.py,sha256=Cguv5O6FR4y4OtRIFrXLy7oQ_XfjHnBo9PNplYi2y_M,7381
16
16
  finbourne_sdk_utils/cocoon/config/domain_settings.json,sha256=qFcdoiNRLIBD1QNBKwvyfPSUdYLE0DgQfVk_0qH4xcs,3504
17
17
  finbourne_sdk_utils/cocoon/config/seed_sample_data.json,sha256=V7PQoe8x3TIzvnVFoSfynP9dqlo6Z_68lvLlmKxD5xc,1186
@@ -45,8 +45,8 @@ finbourne_sdk_utils/lpt/txn_config.py,sha256=4WIEzypXXuoHdbEDJLl90iZj7dYfV-KaE8d
45
45
  finbourne_sdk_utils/lpt/txn_config_yaml.py,sha256=F5kHG-7l5khJvnaLEndHurgmannCi-Pt3U6MMJRuJ9Y,17717
46
46
  finbourne_sdk_utils/pandas_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
47
47
  finbourne_sdk_utils/pandas_utils/lusid_pandas.py,sha256=rJENs5lIYEKcwvYaagKc-ei_3sOnbNZT9oFLuO8PU6Y,4900
48
- finbourne_sdk_utils-0.0.29.dist-info/LICENSE,sha256=pT32QD9c76jv4OMjXhZrYpjqlZTuiex52qmKUsLKRQc,1066
49
- finbourne_sdk_utils-0.0.29.dist-info/METADATA,sha256=fyDMwOfXd8R7JIHWPv3_uJg8HNB-rtM4oZTTpYupfUA,731
50
- finbourne_sdk_utils-0.0.29.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
51
- finbourne_sdk_utils-0.0.29.dist-info/top_level.txt,sha256=DiS6bVuYtHoXKSgWOlYhiXKPVFCJqhdtmQgMCGNZxxY,29
52
- finbourne_sdk_utils-0.0.29.dist-info/RECORD,,
48
+ finbourne_sdk_utils-0.0.30.dist-info/LICENSE,sha256=pT32QD9c76jv4OMjXhZrYpjqlZTuiex52qmKUsLKRQc,1066
49
+ finbourne_sdk_utils-0.0.30.dist-info/METADATA,sha256=pNNUNPZWCL8R2C-rHmDj6fzqpZopmUe8zGYMsXtPr-c,731
50
+ finbourne_sdk_utils-0.0.30.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
51
+ finbourne_sdk_utils-0.0.30.dist-info/top_level.txt,sha256=DiS6bVuYtHoXKSgWOlYhiXKPVFCJqhdtmQgMCGNZxxY,29
52
+ finbourne_sdk_utils-0.0.30.dist-info/RECORD,,