diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 13:55:55 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-09 13:55:55 +1200 |
commit | 22192d1a46a45b3824290ff4095539fa8b6be1fa (patch) | |
tree | ca395bf8a5b17ac12534a89bf008c64a627a3425 /libmproxy/console | |
parent | b7b357528c3d3867f1a29400de3a11f2d976e60d (diff) | |
download | mitmproxy-22192d1a46a45b3824290ff4095539fa8b6be1fa.tar.gz mitmproxy-22192d1a46a45b3824290ff4095539fa8b6be1fa.tar.bz2 mitmproxy-22192d1a46a45b3824290ff4095539fa8b6be1fa.zip |
Nose mopup: docs, no cover pragmas, a few missing path specs.
Diffstat (limited to 'libmproxy/console')
-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) |