Commit e633404 1 parent d405c52 commit e633404 Copy full SHA for e633404
File tree 2 files changed +7
-1
lines changed
src/main/scala/org/mbari/vars/migration/subcommands
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
package org .mbari .vars .migration .subcommands
9
9
10
+ // Need to be able to provide a default ission contact
11
+
10
12
object MigrateAll
Original file line number Diff line number Diff line change @@ -40,8 +40,12 @@ object MigrateOne:
40
40
for videoArchive <- videoArchiveSet.getVideoArchives.asScala
41
41
do
42
42
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
43
47
// do something
44
- migrateService.migrate(videoArchive, missionContact)
48
+ migrateService.migrate(videoArchive, missionContact)
45
49
catch
46
50
case NonFatal (e) =>
47
51
log.atError.withCause(e).log(s " Failed to migrate $videoArchiveName" )
You can’t perform that action at this time.
0 commit comments