refactoring
This commit is contained in:
@@ -91,6 +91,7 @@ class SystemConfigRepositoryImpl implements ISystemConfigRepository {
|
||||
}
|
||||
throw Exception('Erreur ${response.statusCode}');
|
||||
} on DioException catch (e, st) {
|
||||
if (e.type == DioExceptionType.cancel) rethrow;
|
||||
// Si l'endpoint n'existe pas (404), fallback : récupérer config par défaut via GET
|
||||
if (e.response?.statusCode == 404) {
|
||||
AppLogger.warning(
|
||||
|
||||
Reference in New Issue
Block a user