Skip to content

Commit e633404

Browse files
committed
check point
1 parent d405c52 commit e633404

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/main/scala/org/mbari/vars/migration/subcommands/MigrateAll.scala

+2
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77

88
package org.mbari.vars.migration.subcommands
99

10+
// Need to be able to provide a default ission contact
11+
1012
object MigrateAll

src/main/scala/org/mbari/vars/migration/subcommands/MigrateOne.scala

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ object MigrateOne:
4040
for videoArchive <- videoArchiveSet.getVideoArchives.asScala
4141
do
4242
try
43+
val frames = videoArchive.getVideoFrames().asScala
44+
if frames.isEmpty then
45+
log.atWarn.log(s"No video frames found for $videoArchiveName")
46+
else
4347
// do something
44-
migrateService.migrate(videoArchive, missionContact)
48+
migrateService.migrate(videoArchive, missionContact)
4549
catch
4650
case NonFatal(e) =>
4751
log.atError.withCause(e).log(s"Failed to migrate $videoArchiveName")

0 commit comments

Comments
 (0)