refac: use correct fmt
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4177d66ae6
commit
4773d68b06
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user