From 22192d1a46a45b3824290ff4095539fa8b6be1fa Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sat, 9 Jun 2012 13:55:55 +1200 Subject: Nose mopup: docs, no cover pragmas, a few missing path specs. --- libmproxy/console/contentview.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libmproxy/console') 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) -- cgit v1.2.3