Linter cleanup

This commit is contained in:
Darren Thompson
2025-08-07 09:16:31 -04:00
parent 47de5f9821
commit 6301b297d8
2 changed files with 5 additions and 21 deletions

View File

@@ -6,28 +6,12 @@ import logging
import math
from enum import IntEnum
from typing import Dict, Optional, Tuple
from typing import Optional
from typing_extensions import Final
from ctypes import *
from ctypes import Structure, c_int8, c_int16, c_uint8, c_uint16, c_uint32, c_char
from bemani.backend.ddr.base import DDRBase
from bemani.backend.ddr.stubs import DDRSuperNova
from bemani.backend.ddr.common import (
DDRGameFriendHandler,
DDRGameLockHandler,
DDRGameLoadCourseHandler,
DDRGameLoadHandler,
DDRGameLogHandler,
DDRGameMessageHandler,
DDRGameNewHandler,
DDRGameOldHandler,
DDRGameRankingHandler,
DDRGameSaveCourseHandler,
DDRGameSaveHandler,
DDRGameScoreHandler,
DDRGameShopHandler,
DDRGameTraceHandler,
)
from bemani.common import VersionConstants, Profile, PlayStatistics, DBConstants, intish, Time
from bemani.data import Score, UserID
from bemani.protocol import Node
@@ -655,7 +639,7 @@ class DDRSuperNova2(
perf = intish(child.attribute("perf"))
rank = intish(child.attribute("rank"))
score = intish(child.attribute("score"))
except:
except ValueError:
continue
self.update_score(

View File

@@ -316,7 +316,7 @@ class DDRSN2Client(BaseClient):
# Verify empty profile
(player_info, scores1, scores2) = self.verify_player_get(ref_id)
if player_info is None:
raise Exception(f"Player info should not be None")
raise Exception("Player info should not be None")
if player_info.name.decode("euc-jp").strip() != self.NAME:
raise Exception(f"Player info name should be {self.NAME} not {player_info.name}")
if player_info.count != 0:
@@ -363,7 +363,7 @@ class DDRSN2Client(BaseClient):
(player_info, scores1, scores2) = self.verify_player_get(ref_id)
if player_info is None:
raise Exception(f"Player info should not be None")
raise Exception("Player info should not be None")
if player_info.name.decode("euc-jp").strip() != self.NAME:
raise Exception(f"Player info name should be {self.NAME} not {player_info.name}")
if player_info.count != 1: