refactoring

This commit is contained in:
dahoud
2026-03-31 09:14:47 +00:00
parent 9bfffeeebe
commit 5383df6dcb
200 changed files with 11192 additions and 7063 deletions

View File

@@ -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(