refactor: remove handling of specific HTTP client exceptions

This commit is contained in:
sasanktumpati
2024-12-12 13:14:49 +05:30
parent edd69b986a
commit ef547ced06

View File

@ -105,13 +105,6 @@ Future<(HttpResponse?, Duration?, String?)> request(
}
stopwatch.stop();
return (response, stopwatch.elapsed, null);
} on http.ClientException catch (e) {
if (e.message.contains('Connection closed') ||
e.message.contains('Connection attempt cancelled')) {
return (null, null, 'Request Cancelled');
} else {
return (null, null, e.toString());
}
} catch (e) {
return (null, null, e.toString());
} finally {