Skip to content

Commit

Permalink
fix: payload too large checker (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Aug 19, 2023
1 parent e92f851 commit e332163
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dank_mids/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def exception(self) -> BadResponse:
return PayloadTooLarge(self) if self.payload_too_large else BadResponse(self)

@property
def payload_too_large(self):
any(err in self.error.message for err in constants.TOO_MUCH_DATA_ERRS)
def payload_too_large(self) -> bool:
return any(err in self.error.message for err in constants.TOO_MUCH_DATA_ERRS)

def to_dict(self, method: Optional[str] = None) -> Dict[str, Any]:
data = {}
Expand Down

0 comments on commit e332163

Please sign in to comment.