Browse Source

Don't throw an error if account is not configured

Vishnu Mohandas 4 years ago
parent
commit
d466e120b4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/services/sync_service.dart

+ 2 - 1
lib/services/sync_service.dart

@@ -207,7 +207,8 @@ class SyncService {
 
   Future<void> syncWithRemote({bool silently = false}) async {
     if (!Configuration.instance.hasConfiguredAccount()) {
-      return Future.error("Account not configured yet");
+      _logger.info("Skipping remote sync since account is not configured");
+      return;
     }
     await _collectionsService.sync();
     final updatedCollections =