Fixed things
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-04 15:35:38 +02:00
parent ee9dea06fb
commit be361a7c18

View File

@ -23,7 +23,7 @@ class MagicDoer:
tag = parameters['tag'] tag = parameters['tag']
sample_file_handle, sample_file_path = tempfile.mkstemp(prefix=f"{tag}_", suffix=".wav", dir="/dev/shm") sample_file_handle, sample_file_path = tempfile.mkstemp(prefix=f"{tag}_", suffix=".wav", dir="/dev/shm")
span = opentracing.tracer.scope_manager.active().span span = opentracing.tracer.scope_manager.active.span
span.log_kv({'event': 'sampleFileOpened', 'sampleTag': tag}) span.log_kv({'event': 'sampleFileOpened', 'sampleTag': tag})
response = None response = None
try: try:
@ -64,7 +64,7 @@ class MagicDoer:
except FileNotFoundError: except FileNotFoundError:
pass pass
span = opentracing.tracer.scope_manager.active().span span = opentracing.tracer.scope_manager.active.span
span.log_kv({'event': 'sampleFileDeleted', 'sampleTag': tag}) span.log_kv({'event': 'sampleFileDeleted', 'sampleTag': tag})
if not response: if not response: