chiark / gitweb /
allow nonexistent charset db
[ypp-sc-tools.db-live.git] / pctb / show-thing.tcl
index d71c36ef6381c54a885ab038dd55ef5b9840c280..980a8a48c88763ad41e8bc6ed7bfa1e33a1e8f12 100755 (executable)
@@ -387,6 +387,7 @@ proc read_database {} {
     global database database_header rows database_fn
     catch { unset database }
     set database_fn ./charset-$rows.txt
+    if {![file exists $database_fn]} return
     set f [open $database_fn r]
     if {[string compare [db_getsl $f] $database_header]} { error "$l ?" }
     if {([db_getsl $f])+0 != $rows} { error "wrong h ?" }