forked from rDrama/rDrama
if statement instead of try-except
parent
34a560f1e6
commit
254c85c8ef
|
@ -26,8 +26,8 @@ class AwardRelationship(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def type(self):
|
def type(self):
|
||||||
try: return AWARDS[self.kind]
|
if self.kind in AWARDS: return AWARDS[self.kind]
|
||||||
except: return HOUSE_AWARDS[self.kind]
|
else: return HOUSE_AWARDS[self.kind]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
|
|
Loading…
Reference in New Issue