mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-06 00:33:39 +00:00
Add check for empty offer
This commit is contained in:
@@ -17,7 +17,8 @@ class Topic:
|
||||
self.title = title
|
||||
self.post_time = post_time
|
||||
self.web_path = web_path
|
||||
self.offer = Offer(**offer)
|
||||
if offer:
|
||||
self.offer = Offer(**offer)
|
||||
|
||||
def __repr__(self):
|
||||
return f"Topic({self.title})"
|
||||
|
Reference in New Issue
Block a user