Sample script: fix raise TypeError in error_log

seems like written in error_log:
no implicit conversion of String into Integer (TypeError)