Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use built-in try/catch #34

Merged
merged 2 commits into from
Mar 6, 2025
Merged

Use built-in try/catch #34

merged 2 commits into from
Mar 6, 2025

Conversation

davorg
Copy link
Collaborator

@davorg davorg commented Mar 6, 2025

Fixes #28

Update lib/Perlanet.pm to use built-in try/catch for exception handling.

  • Remove the use Try::Tiny statement.
  • Replace the try block in the fetch_feeds method with the built-in try block.
  • Replace the catch block in the fetch_feeds method with the built-in catch block.

Update Build.PL to remove the Try::Tiny dependency.

  • Remove the Try::Tiny dependency from the requires section.

For more details, open the Copilot Workspace session.

davorg and others added 2 commits March 6, 2025 15:42
Fixes #28

Update `lib/Perlanet.pm` to use built-in try/catch for exception handling.

* Remove the `use Try::Tiny` statement.
* Replace the `try` block in the `fetch_feeds` method with the built-in `try` block.
* Replace the `catch` block in the `fetch_feeds` method with the built-in `catch` block.

Update `Build.PL` to remove the `Try::Tiny` dependency.

* Remove the `Try::Tiny` dependency from the `requires` section.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/davorg-cpan/perlanet/issues/28?shareId=XXXX-XXXX-XXXX-XXXX).
@davorg davorg merged commit 9e2f048 into master Mar 6, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use built-in try/catch
1 participant