Skip to content

Commit 13172ea

Browse files
committed
Update dio dependency to 5.7.0.
1 parent 66b6c57 commit 13172ea

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.7.3
2+
3+
- Additional exception handler for certificate issues which then throws PodcastCertificateException.
4+
- Updated Dio dependency to 5.7.0.
5+
16
## 0.7.2
27

38
- Added retry to Apple charts API call to handle intermittent 503 errors.

lib/src/model/podcast.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@ class Podcast {
128128
case DioExceptionType.cancel:
129129
throw PodcastCancelledException(e.message ?? '');
130130
case DioExceptionType.unknown:
131+
132+
/// We may be able to determine the underlying error
133+
if (e.error is HandshakeException) {
134+
throw PodcastCertificateException(e.message ?? '');
135+
}
136+
137+
if (e.error is CertificateException) {
138+
throw PodcastCertificateException(e.message ?? '');
139+
}
140+
131141
throw PodcastUnknownException(e.message ?? '');
132142
}
133143
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: podcast_search
22
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.
33

4-
version: 0.7.2
4+
version: 0.7.3
55
homepage: https://github.com/amugofjava/podcast_search
66

77
environment:

0 commit comments

Comments
 (0)