t-bug-catcher 0.6.7__tar.gz → 0.6.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/PKG-INFO +2 -2
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/setup.cfg +1 -1
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/setup.py +1 -1
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/__init__.py +1 -1
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/config.py +1 -1
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/jira.py +17 -4
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher.egg-info/PKG-INFO +2 -2
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/MANIFEST.in +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/README.rst +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/pyproject.toml +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/requirements.txt +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/bug_catcher.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/bug_snag.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/exceptions.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/resources/whispers_config.yml +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/stack_saver.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/utils/__init__.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/utils/common.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/utils/logger.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher/workitems.py +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher.egg-info/SOURCES.txt +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher.egg-info/dependency_links.txt +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher.egg-info/not-zip-safe +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher.egg-info/requires.txt +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/t_bug_catcher.egg-info/top_level.txt +0 -0
- {t_bug_catcher-0.6.7 → t_bug_catcher-0.6.9}/tests/test_t_bug_catcher.py +0 -0
|
@@ -26,7 +26,7 @@ setup(
|
|
|
26
26
|
packages=find_packages(include=["t_bug_catcher", "t_bug_catcher.*"]),
|
|
27
27
|
test_suite="tests",
|
|
28
28
|
url="https://www.thoughtful.ai/",
|
|
29
|
-
version="0.6.
|
|
29
|
+
version="0.6.9",
|
|
30
30
|
zip_safe=False,
|
|
31
31
|
install_requires=install_requirements,
|
|
32
32
|
include_package_data=True,
|
|
@@ -1770,19 +1770,32 @@ class Jira:
|
|
|
1770
1770
|
return response[0]["accountId"]
|
|
1771
1771
|
|
|
1772
1772
|
@staticmethod
|
|
1773
|
-
def sanitize_summary(exception:
|
|
1773
|
+
def sanitize_summary(exception: Exception) -> str:
|
|
1774
1774
|
"""Remove locators from the exception.
|
|
1775
1775
|
|
|
1776
1776
|
Args:
|
|
1777
|
-
exception (
|
|
1777
|
+
exception (Exception): The exception to be cleaned.
|
|
1778
1778
|
|
|
1779
1779
|
Returns:
|
|
1780
1780
|
str: The cleaned exception string.
|
|
1781
1781
|
"""
|
|
1782
|
-
|
|
1782
|
+
try:
|
|
1783
|
+
exception_str = str(exception)
|
|
1784
|
+
except Exception as e:
|
|
1785
|
+
logger.warning(f"Failed to convert exception to string due to: {e}")
|
|
1786
|
+
try:
|
|
1787
|
+
tb_lines = traceback.format_exception(type(exception), exception, exception.__traceback__)
|
|
1788
|
+
exception_str = tb_lines[-1].strip()
|
|
1789
|
+
except Exception as e:
|
|
1790
|
+
logger.warning(f"Failed to convert exception to string due to: {e}")
|
|
1791
|
+
return exception.__class__.__name__
|
|
1792
|
+
|
|
1793
|
+
message = re.sub("<([a-z]+)(?![^>]*\/>)[^>]*>", r"<\1>", exception_str)
|
|
1783
1794
|
message = re.sub(">([^<]+)<\/", ">...</", message)
|
|
1795
|
+
|
|
1784
1796
|
if "selenium" not in exception.__class__.__name__.lower() and not isinstance(exception, AssertionError):
|
|
1785
|
-
return
|
|
1797
|
+
return message
|
|
1798
|
+
|
|
1786
1799
|
return re.sub(r"\'(.+)\'", "'...'", message)
|
|
1787
1800
|
|
|
1788
1801
|
def __create_summary(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|