diff options
Diffstat (limited to 'libmproxy/console/contentview.py')
-rw-r--r-- | libmproxy/console/contentview.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libmproxy/console/contentview.py b/libmproxy/console/contentview.py index c897db85..e64cb4fa 100644 --- a/libmproxy/console/contentview.py +++ b/libmproxy/console/contentview.py @@ -236,11 +236,10 @@ def view_javascript(hdrs, content, limit): opts.indent_size = 2 try: res = jsbeautifier.beautify(content[:limit], opts) - # begin nocover - except: - # Bugs in jsbeautifier mean that it can trhow arbitrary errors. - return None - # end nocover + except: # pragma: no cover + # Bugs in jsbeautifier mean that it + # can throw arbitrary errors. + return None # pragma: no cover return "JavaScript", _view_text(res, len(content), limit) |