catch around setmaintarget

This commit is contained in:
2023-10-24 13:18:39 +02:00
parent b54a51def2
commit 7ccc96759e

View File

@ -2950,7 +2950,9 @@ proc lsc::check_set {} {
} }
if {[silent 0 sct internalset] eq "0"} { if {[silent 0 sct internalset] eq "0"} {
if {[silent 0 sct setmaintarget] ne "0"} { if {[silent 0 sct setmaintarget] ne "0"} {
eval "[sct setmaintarget] $target" if {[catch {eval "[sct setmaintarget] $target"} msg]} {
clientlog "WARNING: $msg"
}
} }
} }
if {$target == 0} { if {$target == 0} {