You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewCalendarMigratorException('Failed to get unique calendar URI');
196
+
thrownewInvalidCalendarException();
194
197
}
195
198
196
199
$existingCalendarUris = array_map(
@@ -457,17 +460,20 @@ public function import(IUser $user, IImportSource $importSource, OutputInterface
457
460
VObjectReader::OPTION_FORGIVING,
458
461
);
459
462
} catch (Throwable$e) {
460
-
thrownewCalendarMigratorException("Failed to read file \"$importPath\"", 0, $e);
463
+
$output->writeln("Failed to read file \"$importPath\", skipping…");
464
+
continue;
461
465
}
462
466
463
467
$problems = $vCalendar->validate();
464
468
if (!empty($problems)) {
465
-
thrownewCalendarMigratorException("Invalid calendar data contained in \"$importPath\"");
469
+
$output->writeln("Invalid calendar data contained in \"$importPath\", skipping…");
470
+
continue;
466
471
}
467
472
468
473
$splitFilename = explode('.', $filename, 2);
469
474
if (count($splitFilename) !== 2) {
470
-
thrownewCalendarMigratorException("Invalid filename \"$filename\", expected filename of the format \"<calendar_name>" . CalendarMigrator::FILENAME_EXT . '"');
475
+
$output->writeln("Invalid filename \"$filename\", expected filename of the format \"<calendar_name>" . CalendarMigrator::FILENAME_EXT . '", skipping…');
thrownewContactsMigratorException("Invalid filename \"$addressBookFilename\", expected filename of the format \"<address_book_name>." . ContactsMigrator::FILENAME_EXT . '"');
374
+
$output->writeln("Invalid filename \"$addressBookFilename\", expected filename of the format \"<address_book_name>." . ContactsMigrator::FILENAME_EXT . '", skipping…');
0 commit comments