Skip to content

Commit

Permalink
More 3.12 fixes for the same issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gobot1234 committed Dec 20, 2023
1 parent e00adec commit 6f11638
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions steam/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _COMMENTABLE_TYPE(cls: type[Self]) -> _CommentThreadType:
try:
return _CommentThreadType[cls.__name__]
except KeyError:
raise AttributeError(f"{cls.__name__} is not a valid commentable")
raise AttributeError(f"{cls.__name__} is not a valid commentable type")

def __init_subclass__(cls) -> None:
super().__init_subclass__()
Expand Down Expand Up @@ -268,7 +268,10 @@ class Awardable(Protocol[IDT]): # type: ignore # ReadOnly (PEP 705) should sav

@classproperty
def _AWARDABLE_TYPE(cls: type[Self]) -> _AwardableType:
return _AwardableType[cls.__name__]
try:
return _AwardableType[cls.__name__]
except KeyError:
raise AttributeError(f"{cls.__name__} is not a valid awardable type")

def __init_subclass__(cls) -> None:
super().__init_subclass__()
Expand Down

0 comments on commit 6f11638

Please sign in to comment.