There was an error while loading. Please reload this page.
1 parent 07a3ea3 commit 2f91234Copy full SHA for 2f91234
1 file changed
sentry_sdk/integrations/stdlib.py
@@ -350,12 +350,15 @@ def sentry_patched_popen_init(
350
span.set_tag("subprocess.pid", self.pid)
351
352
with capture_internal_exceptions():
353
- breadcrumb_data = {"subprocess.cwd": cwd} if cwd else {}
+ data = {}
354
+ if cwd:
355
+ data["subprocess.cwd"] = cwd
356
+
357
sentry_sdk.add_breadcrumb(
358
type="subprocess",
359
category="subprocess",
360
message=description,
- data=breadcrumb_data,
361
+ data=data,
362
)
363
364
return rv
0 commit comments