diff options
| author | jerome <jerome@xlinfo.fr> | 2025-07-07 09:33:33 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-07-07 09:33:33 +0200 |
| commit | fb02675631cea33ba3660f96febe4a34fa0502b8 (patch) | |
| tree | 48328cc30866be22f81eab60dc2cde07048e0a27 /scapy/capture.py | |
| parent | 4a877ace04d47b48edea16d695b23205a99c5f36 (diff) | |
| download | python-fb02675631cea33ba3660f96febe4a34fa0502b8.tar.gz python-fb02675631cea33ba3660f96febe4a34fa0502b8.zip | |
scapy try except
Diffstat (limited to 'scapy/capture.py')
| -rw-r--r-- | scapy/capture.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scapy/capture.py b/scapy/capture.py index c36b0c0..dc0e5a6 100644 --- a/scapy/capture.py +++ b/scapy/capture.py @@ -12,4 +12,4 @@ def packet_capture(pkt): try: sniff(prn=packet_capture, filter="ip", count=50) except PermissionError: - print(f"{sys.argv[0]} nécessite les droits root") + print("Ce script nécessite les droits root") |
