Skip to content

Commit 6708d12

Browse files
committed
Removed unnecessary catch block
1 parent 92baa67 commit 6708d12

2 files changed

Lines changed: 27 additions & 29 deletions

File tree

.idea/workspace.xml

Lines changed: 16 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

beatmapparser.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,17 @@ def parse_additions(self, line):
7777
def parse_timing_point(self, line):
7878
members = line.split(',')
7979

80-
try:
81-
timing_point = {
82-
"offset": int(float(members[0])),
83-
"beatLength": float(members[1]),
84-
"velocity": 1,
85-
"timingSignature": int(members[2]),
86-
"sampleSetId": int(members[3]),
87-
"customSampleIndex": int(members[4]),
88-
"sampleVolume": int(members[5]),
89-
"timingChange": (members[6] == 1),
90-
"kiaiTimeActive": (members[7] == 1)
91-
}
92-
except Exception as e:
93-
raise e
80+
timing_point = {
81+
"offset": int(float(members[0])),
82+
"beatLength": float(members[1]),
83+
"velocity": 1,
84+
"timingSignature": int(members[2]),
85+
"sampleSetId": int(members[3]),
86+
"customSampleIndex": int(members[4]),
87+
"sampleVolume": int(members[5]),
88+
"timingChange": (members[6] == 1),
89+
"kiaiTimeActive": (members[7] == 1)
90+
}
9491

9592
if not math.isnan(timing_point["beatLength"]) and timing_point["beatLength"] != 0:
9693
if timing_point["beatLength"] > 0:

0 commit comments

Comments
 (0)