Repository: honeybadger-io/honeybadger-python (language: python)

Issue:
added excluded exception config option
Fixes #94 


Discussion / hints:

Fix patch:
diff --git a/README.md b/README.md
index 1507fca..c78a514 100644
--- a/README.md
+++ b/README.md
@@ -332,7 +332,7 @@ The following options are available to you:
 | endpoint | `str` | `"https://api.honeybadger.io"` | `"https://honeybadger.example.com/"` | `HONEYBADGER_ENDPOINT` |
 | params_filters | `list` | `['password', 'password_confirmation', 'credit_card']` | `['super', 'secret', 'keys']` | `HONEYBADGER_PARAMS_FILTERS` |
 | force_report_data | `bool` | `False` | `True` | `HONEYBADGER_FORCE_REPORT_DATA` |
-| excluded_exceptions | `list` | `["AttributeError", "SomeOtherError"]` | `HONEYBADGER_EXCLUDED_EXCEPTIONS` |
+| excluded_exceptions | `list` | `[]` | `['Http404', 'MyCustomIgnoredError']` | `HONEYBADGER_EXCLUDED_EXCEPTIONS`
 | force_sync | `bool` | `False` | `True` | `HONEYBADGER_FORCE_SYNC` |
 
 ## Public Methods


Test patch:
diff --git a/honeybadger/tests/test_core.py b/honeybadger/tests/test_core.py
index 5d6fadd..9edf48c 100644
--- a/honeybadger/tests/test_core.py
+++ b/honeybadger/tests/test_core.py
@@ -90,6 +90,21 @@ def test_payload(request):
         hb.configure(api_key='aaa', force_report_data=True)
         hb.notify(ValueError('Test value error.'))
 
+
+def test_notify_with_excluded_exception():
+    def test_payload(request):
+        payload = json.loads(request.data.decode('utf-8'))
+        eq_(payload['error']['class'], 'AttributeError')
+        eq_(payload['error']['message'], 'Test attribute error.')
+
+    hb = Honeybadger()
+
+    with mock_urlopen(test_payload) as request_mock:
+        hb.configure(api_key='aaa', force_report_data=True, excluded_exceptions=['ValueError'])
+        hb.notify(ValueError('Test value error.'))
+        hb.notify(AttributeError('Test attribute error.'))
+
+
 def test_notify_context_merging():
     def test_payload(request):
         payload = json.loads(request.data.decode('utf-8'))