refac: use correct fmt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Markus Pesch 2025-02-02 18:27:39 +01:00
parent 4177d66ae6
commit 4773d68b06
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -4,6 +4,7 @@ import (
"bufio"
"bytes"
"fmt"
"github.com/nlpodyssey/gopickle/pickle"
)
@ -62,7 +63,7 @@ func (s *Fail2BanSocket) read() (interface{}, error) {
if (module == "builtins" || module == "__builtin__") && name == "str" {
return &Py_builtins_str{}, nil
}
return nil, fmt.Errorf("class not found: " + module + " : " + name)
return nil, fmt.Errorf("class not found: %s: %s", module, name)
}
return unpickler.Load()