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
Next Next commit
catch the PermissionError for macOS
Signed-off-by: Keming <kemingy94@gmail.com>
  • Loading branch information
kemingy committed Dec 13, 2025
commit cfea35b7824f8c6f6abb03ceb03baff68621c328
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def test_sample_target_module(self):
)
class TestSampleProfilerErrorHandling(unittest.TestCase):
def test_invalid_pid(self):
with self.assertRaises(SystemExit):
with self.assertRaises((SystemExit, PermissionError)):
collector = PstatsCollector(sample_interval_usec=100, skip_idle=False)
profiling.sampling.sample.sample(-1, collector, duration_sec=1)

Expand Down
Loading