Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
- Dropped support for Flask below 2.0.
- Dropped support for Chalice below 1.22.
- Dropped support for aiohttp below 3.7.
- Dropped support for trytond below 5.4.
- Removed the possibility to supply a specific client to the LaunchDarklyIntegration.
- The `enable_tracing` option was removed. Use `traces_sample_rate=1.0` instead.
- The deprecated `push_scope` and `configure_scope` APIs have been removed. Use `with new_scope():` to push a new scope and `scope = get_current_scope()` to retrieve the current scope instead.
Expand Down
2 changes: 1 addition & 1 deletion scripts/populate_tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
"package": "trytond",
"deps": {
"*": ["werkzeug"],
"<=5.0": ["werkzeug<1.0"],
"<5.5": ["werkzeug<2.0"],
},
},
"typer": {
Expand Down
316 changes: 18 additions & 298 deletions scripts/populate_tox/package_dependencies.jsonl

Large diffs are not rendered by default.

52 changes: 2 additions & 50 deletions scripts/populate_tox/releases.jsonl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sentry_sdk/integrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def iter_default_integrations(
"statsig": (0, 55, 3),
"strawberry": (0, 209, 5),
"tornado": (6, 0),
"trytond": (4, 6),
"trytond": (5, 4),
"typer": (0, 15),
"unleash": (6, 0, 1),
}
Expand Down
14 changes: 3 additions & 11 deletions sentry_sdk/integrations/trytond.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@ def error_handler(e: Exception) -> None:
)
sentry_sdk.capture_event(event, hint=hint)

# Expected error handlers signature was changed
# when the error_handler decorator was introduced
# in Tryton-5.4
if hasattr(app, "error_handler"):

@app.error_handler
def _(app, request, e): # type: ignore
error_handler(e)

else:
app.error_handlers.append(error_handler)
@app.error_handler
def _(app, request, e): # type: ignore
error_handler(e)
219 changes: 110 additions & 109 deletions tox.ini

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading