The Policy Simulation Library consists of models and modeling tools that share the transparency standards and interoperability criteria set by the PSL-Infrastructure project
Error Handling in load_catalog Method: Introduced try-except blocks around the logic that fetches and parses PSL_catalog.json from project repositories. This update is designed to catch and log issues arising from missing or malformed PSL_catalog.json files, as well as handle unexpected errors during the API request process.
Logging for Skipped Projects: Implemented logging warnings for cases where projects are skipped due to HTTP errors (e.g., rate limits or missing files) or JSON parsing errors (malformed JSON). An error log is also added for any other unexpected exceptions, ensuring that processing continues to the next project without halting the build.
Updates to CSS/catalog.css:
Adjustments for User Logos: Modified the CSS rules for .user-grid-item img to enhance the presentation of user logos. Ensured height is fixed while width auto-adjusts, preserving the original aspect ratios and preventing distortion.
Modifications to
catalog_builder/catalog.py
:Error Handling in
load_catalog
Method: Introduced try-except blocks around the logic that fetches and parsesPSL_catalog.json
from project repositories. This update is designed to catch and log issues arising from missing or malformedPSL_catalog.json
files, as well as handle unexpected errors during the API request process.Logging for Skipped Projects: Implemented logging warnings for cases where projects are skipped due to HTTP errors (e.g., rate limits or missing files) or JSON parsing errors (malformed JSON). An error log is also added for any other unexpected exceptions, ensuring that processing continues to the next project without halting the build.
Updates to
CSS/catalog.css
:.user-grid-item img
to enhance the presentation of user logos. Ensured height is fixed while width auto-adjusts, preserving the original aspect ratios and preventing distortion.