File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -381,20 +381,20 @@ Tlsh_fromTlshStr(tlsh_TlshObject *self, PyObject *args)
381
381
arg = asciiStr;
382
382
#else
383
383
if (!PyString_Check (arg)) {
384
- PyErr_SetString (PyExc_ValueError, " argument is not a TLSH hex string" );
385
- return NULL ;
384
+ PyErr_SetString (PyExc_ValueError, " argument is not a TLSH hex string" );
385
+ return NULL ;
386
386
}
387
387
#endif
388
388
389
389
if (PyBytes_AsStringAndSize (arg, &str, &len) == -1 ) {
390
- PyErr_SetString (PyExc_ValueError, " failed to extract string and size " );
390
+ PyErr_SetString (PyExc_ValueError, " argument is not a TLSH hex string " );
391
391
#if PY_MAJOR_VERSION >= 3
392
392
Py_XDECREF (asciiStr);
393
393
#endif
394
394
return NULL ;
395
395
}
396
396
397
- if ((len != TLSH_STRING_LEN_REQ) && (len != TLSH_STRING_LEN_REQ - 2 )) {
397
+ if ((len != TLSH_STRING_LEN_REQ) && (len != TLSH_STRING_LEN_REQ- 2 )) {
398
398
PyErr_SetString (PyExc_ValueError, " argument length incorrect: not a TLSH hex string" );
399
399
#if PY_MAJOR_VERSION >= 3
400
400
Py_XDECREF (asciiStr);
You can’t perform that action at this time.
0 commit comments