if statement instead of try-except

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-30 03:13:43 +02:00
parent 34a560f1e6
commit 254c85c8ef
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ class AwardRelationship(Base):
@property
@lazy
def type(self):
try: return AWARDS[self.kind]
except: return HOUSE_AWARDS[self.kind]
if self.kind in AWARDS: return AWARDS[self.kind]
else: return HOUSE_AWARDS[self.kind]
@property
@lazy