Skip to content

Commit

Permalink
Update dio dependency to 5.7.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
amugofjava committed Sep 18, 2024
1 parent 66b6c57 commit 13172ea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.7.3

- Additional exception handler for certificate issues which then throws PodcastCertificateException.
- Updated Dio dependency to 5.7.0.

## 0.7.2

- Added retry to Apple charts API call to handle intermittent 503 errors.
Expand Down
10 changes: 10 additions & 0 deletions lib/src/model/podcast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,16 @@ class Podcast {
case DioExceptionType.cancel:
throw PodcastCancelledException(e.message ?? '');
case DioExceptionType.unknown:

/// We may be able to determine the underlying error
if (e.error is HandshakeException) {
throw PodcastCertificateException(e.message ?? '');
}

if (e.error is CertificateException) {
throw PodcastCertificateException(e.message ?? '');
}

throw PodcastUnknownException(e.message ?? '');
}
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: podcast_search
description: A library for searching for podcasts and parsing podcast RSS feeds. Supports iTunes and PodcastIndex directories, and newer features such as chapters and transcripts.

version: 0.7.2
version: 0.7.3
homepage: https://github.com/amugofjava/podcast_search

environment:
Expand Down

0 comments on commit 13172ea

Please sign in to comment.