fix ruff complains about python imperfections

This commit is contained in:
Stefan Eissing 2025-07-21 12:44:05 +02:00
parent 75c5d663ac
commit 5900c6bf92
No known key found for this signature in database
2 changed files with 2 additions and 3 deletions

View file

@ -676,7 +676,7 @@ def run_score(args, protocol):
sockd = None
socks_args = None
if args.socks4 and args.socks5:
raise ScoreCardError(f'unable to run --socks4 and --socks5 together')
raise ScoreCardError('unable to run --socks4 and --socks5 together')
elif args.socks4 or args.socks5:
sockd = Dante(env=env)
if sockd:

View file

@ -29,8 +29,7 @@ import os
import socket
import subprocess
from datetime import datetime, timedelta
from typing import List, Dict
from typing import Dict
from .env import Env
from .ports import alloc_ports_and_do