mirror of
https://github.com/ente-io/ente.git
synced 2025-08-07 23:18:10 +00:00
Skip reporting dio error to sentry
This commit is contained in:
parent
1a9e1d7d77
commit
deace2bccd
@ -5,6 +5,7 @@ import 'dart:collection';
|
||||
import 'dart:core';
|
||||
import 'dart:io';
|
||||
|
||||
import "package:dio/dio.dart";
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
@ -230,6 +231,9 @@ class SuperLogging {
|
||||
StackTrace? stack,
|
||||
) async {
|
||||
try {
|
||||
if (error is DioError) {
|
||||
return;
|
||||
}
|
||||
await Sentry.captureException(
|
||||
error,
|
||||
stackTrace: stack,
|
||||
|
@ -205,7 +205,7 @@ class UserService {
|
||||
|
||||
Future<Sessions> getActiveSessions() async {
|
||||
try {
|
||||
final response = await _enteDio.get("/users/sessions");
|
||||
final response = await _enteDio.get("/users/sessionsx");
|
||||
return Sessions.fromMap(response.data);
|
||||
} on DioError catch (e) {
|
||||
_logger.info(e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user