Skip to content

Commit eb762e5

Browse files
committed
does not use bare except
1 parent aef2f03 commit eb762e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/thscoreboard/replays/templatetags/replay_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ def convert_th13_trance(value) -> str:
1313
gauge_units = int(value) // 200
1414
gauge_progress = int(value) % 200
1515
return str(gauge_units) + " + " + str(gauge_progress) + "/200"
16-
except:
16+
except (ValueError, TypeError):
1717
return "invalid trance value"

0 commit comments

Comments
 (0)