Closed hect0x7 closed 5 months ago
The updates introduce custom exception listeners and enhance logging capabilities, marking a significant enhancement in extensibility for the jmcomic
module. This version, 2.5.3, also tweaks API domain preferences, modifies exception handling, and refines client caching strategies. Through tutorials and code adjustments, it ensures developers have the tools to customize and extend functionality more seamlessly, especially in handling exceptions and optimizing network interactions.
Files | Summary |
---|---|
README.md |
Introduced support for custom exception listeners alongside custom logging. |
assets/docs/.../4_module_custom.md |
Added tutorial section on using custom exception listeners. |
assets/docs/.../8_pick_domain.md |
Modified new_jm_client function call to include a new impl argument. |
src/jmcomic/__init__.py |
Updated version number to '2.5.3'. |
src/jmcomic/jm_client_impl.py |
Added callback parameter to request_with_retry method. |
src/jmcomic/jm_config.py |
Adjusted domain API list, exception listener registry, and default client cache settings. |
src/jmcomic/jm_exception.py |
Updated exception classes with new attributes and added a new exception class. |
src/jmcomic/jm_option.py , tests/.../__init__.py , usage/.../workflow_download.py |
Enhanced client caching and exception handling. |
"In the realm of code, where bugs like to hop,
🐇 A rabbit worked hard, making exceptions stop.
With a tweak and a twist, and a hop nonstop,
🎉 To version 2.5.3, we gracefully hop!"
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
To prevent beginners from mistakenly submitting PRs, if your PR only modifies the usage/workflow_download.py file, it will be automatically closed. If you really want to submit a PR, please reopen it yourself. Make sure you know what you are doing!
Summary by CodeRabbit
new_jm_client
function for domain selection.decide_filepath
function for determining file paths and an integrated exception handling mechanism in the download workflow.jmcomic
to 2.5.3.DOMAIN_API_LIST
for optimized access.enable_client_cache_on_condition
method to accept a more flexiblecache
parameter.