mirror of
https://github.com/planetmint/planetmint.git
synced 2025-03-30 15:08:31 +00:00
fixed issues after 2.3.0, one that has been caused by refactoring, the other existed already
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
83dfbed8b2
commit
ffe4050d00
@ -23,7 +23,7 @@ class Asset:
|
||||
|
||||
@staticmethod
|
||||
def from_list_dict(asset_dict_list: list[dict]) -> list[Asset]:
|
||||
return [Asset.from_dict(asset_dict) for asset_dict in asset_dict_list]
|
||||
return [Asset.from_dict(asset_dict) for asset_dict in asset_dict_list if isinstance(asset_dict,dict)]
|
||||
|
||||
@staticmethod
|
||||
def list_to_dict(asset_list: list[Asset]) -> list[dict]:
|
||||
|
@ -54,10 +54,10 @@ def catch_db_exception(function_to_decorate):
|
||||
raise schema_error
|
||||
except NetworkError as net_error:
|
||||
raise net_error
|
||||
except ValueError:
|
||||
except ValueError as e:
|
||||
logger.info(f"ValueError in Query/DB instruction: {e}: raising DBConcurrencyError")
|
||||
raise DBConcurrencyError
|
||||
except AttributeError:
|
||||
except AttributeError as e:
|
||||
logger.info(f"Attribute in Query/DB instruction: {e}: raising DBConcurrencyError")
|
||||
raise DBConcurrencyError
|
||||
except Exception as e:
|
||||
|
Loading…
x
Reference in New Issue
Block a user