Skip to content

Commit 9f12a5c

Browse files
committed
Remove exception arg
1 parent f597f8e commit 9f12a5c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/profiling/sampling/live_collector/collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def _process_frames(self, frames):
191191
)
192192
self.result[top_location]["direct_calls"] += 1
193193

194-
def collect_failed_sample(self, exeption):
194+
def collect_failed_sample(self):
195195
self._failed_samples += 1
196196
self.total_samples += 1
197197

Lib/profiling/sampling/sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ def sample(self, collector, duration_sec=10):
200200
except ProcessLookupError:
201201
duration_sec = current_time - start_time
202202
break
203-
except (RuntimeError, UnicodeDecodeError, MemoryError, OSError) as e:
204-
collector.collect_failed_sample(e)
203+
except (RuntimeError, UnicodeDecodeError, MemoryError, OSError):
204+
collector.collect_failed_sample()
205205
errors += 1
206206
except Exception as e:
207207
if not self._is_process_running():

0 commit comments

Comments
 (0)