Public » FogBugz Middleware
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.1, 1.2, and tip

1.1 do not file 404 errors with FogBugz

Changeset 0b63ff68fd48

Parent e2b573105cbb

by Profile picture of Benjamin PollackBenjamin Pollack

Changes to 2 files · Browse files at 0b63ff68fd48 Showing diff from parent e2b573105cbb Diff from another changeset...

 
1
2
3
 
4
5
6
 
11
12
13
 
 
 
 
14
15
16
 
1
2
3
4
5
6
7
 
12
13
14
15
16
17
18
19
20
21
@@ -1,6 +1,7 @@
 import sys  import urllib, urllib2  from django.conf import settings +from django.http import Http404    class FogBugzMiddleware(object):   """Report Django exceptions to FogBugz @@ -11,6 +12,10 @@
  set to send an email on error, it will continue to do so."""     def process_exception(self, request, exception): + # Do not file 404 errors in FogBugz + if isinstance(exception, Http404): + return +   bug = {}   bug["ScoutUserName"] = settings.FOGBUGZ_USERNAME   bug["ScoutProject"] = settings.FOGBUGZ_PROJECT
Change 1 of 1 Show Entire File setup.py Stacked
 
1
2
3
4
 
5
6
7
 
1
2
3
 
4
5
6
7
@@ -1,7 +1,7 @@
 from distutils.core import setup    setup(name='FogBugzMiddleware', - version='1.0', + version='1.1',   description='FogBugz Middleware for Django',   author='Benjamin Pollack',   author_email='benjamin@bitquabit.com',