Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11e7435

Browse files
committed
Limit length of error message
1 parent2935b67 commit11e7435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎pymystem3/mystem.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def _analyze_impl(self, text):
338338
rd,_,_=select.select([self._procout_no], [], [],30)
339339
ifself._procout_nonotinrd:
340340
raiseRuntimeError("Problem has been occured. Current state:\ntext:\n%r\nout:\n%r\nsio:\n%r"%
341-
(text,out,sio.getvalue()))
341+
(text[0:2000],out[0:2000],sio.getvalue()))
342342

343343
returnobj
344344
else:
@@ -359,7 +359,7 @@ def _analyze_impl(self, text):
359359
obj=json.loads(out.decode('utf-8'))
360360
except (IOError,ValueError):
361361
raiseRuntimeError("Problem has been occured. Current state:\ntext:\n%r\nout:\n%r"%
362-
(text,out))
362+
(text[0:2000],out[0:2000]))
363363

364364
returnobj
365365

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp