launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #06392
[Merge] lp:~jtv/maas/lint into lp:maas
Jeroen T. Vermeulen has proposed merging lp:~jtv/maas/lint into lp:maas.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~jtv/maas/lint/+merge/93380
Fix some lint: missing blank line, column overruns.
--
https://code.launchpad.net/~jtv/maas/lint/+merge/93380
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~jtv/maas/lint into lp:maas.
=== modified file 'src/maasserver/middleware.py'
--- src/maasserver/middleware.py 2012-02-16 10:41:16 +0000
+++ src/maasserver/middleware.py 2012-02-16 11:24:24 +0000
@@ -112,11 +112,12 @@
# "Internal Server Error" response.
return None
+
class ConsoleExceptionMiddleware:
def process_exception(self, request, exception):
import traceback
import sys
exc_info = sys.exc_info()
- print("######################## Exception #############################")
+ print(("#" * 34) + " Exception " + ("#" * 34))
print(''.join(traceback.format_exception(*exc_info)))
- print("################################################################")
+ print("#" * 79)