Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspect source of exception and filter out of module scope #40

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix after main merge
  • Loading branch information
kompotkot committed Apr 27, 2021
commit 3bcfbbbb7039a1c11d6b18a18fbcab78ef68608b
13 changes: 4 additions & 9 deletions python/humbug/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,6 @@ def compound_report(
self.publish(report, wait=wait)
return report

<<<<<<< HEAD
def setup_excepthook(
self,
tags: Optional[List[str]] = None,
publish: bool = True,
modules_whitelist: Optional[List[str]] = None,
=======
def logging_report(
self,
record: logging.LogRecord,
Expand Down Expand Up @@ -386,8 +379,10 @@ def record_factory(*args, **kwargs):
self.is_loggerhook_set = True

def setup_excepthook(
self, tags: Optional[List[str]] = None, publish: bool = True
>>>>>>> upstream/main
self,
tags: Optional[List[str]] = None,
publish: bool = True,
modules_whitelist: Optional[List[str]] = None,
) -> None:
"""
Adds error_report with python Exceptions.
Expand Down