Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Prev Previous commit
preserve tracebacks, account for permission error, small fixes
  • Loading branch information
pablogsal committed Dec 17, 2025
commit 7b4bd6990ec5c65f9dad2906fe142ccab3dbfc1a
4 changes: 0 additions & 4 deletions Lib/profiling/sampling/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
class SamplingProfilerError(Exception):
"""Base exception for sampling profiler errors."""

class SamplingPermissionError(SamplingProfilerError):
def __init__(self):
super().__init__(f"Insufficient permission to access process.")

class SamplingUnknownProcessError(SamplingProfilerError):
def __init__(self, pid):
self.pid = pid
Expand Down
5 changes: 4 additions & 1 deletion Lib/profiling/sampling/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, pid, sample_interval_usec, all_threads, *, mode=PROFILING_MOD
try:
Comment thread
pablogsal marked this conversation as resolved.
Resolved
self.unwinder = self._new_unwinder(native, gc, opcodes, skip_non_matching_threads)
except RuntimeError as err:
raise SystemExit(err)
raise SystemExit(err) from err
# Track sample intervals and total sample count
self.sample_intervals = deque(maxlen=100)
self.total_samples = 0
Expand Down Expand Up @@ -278,6 +278,9 @@ def _is_process_running(pid):
return True
except ProcessLookupError:
return False
except PermissionError:
# EPERM means process exists but we can't signal it
return True
elif sys.platform == "win32":
try:
_remote_debugging.RemoteUnwinder(pid)
Expand Down
Loading