Skip to content

Commit

Permalink
Update models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-antupit committed Jan 3, 2025
1 parent e57708d commit ec812fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slack/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def archived(self) -> bool:
info = channel_info(self.id)
return 'is_archived' in info and channel_info(self.id)['is_archived']
except:
return None
return ""

@property
def num_members(self) -> int:
Expand Down Expand Up @@ -114,7 +114,7 @@ def created_on(self) -> datetime.datetime:
info = channel_info(self.id)
return datetime.datetime.fromtimestamp(info['created'])
except:
return None
return ""

@property
def creator(self) -> str:
Expand Down

0 comments on commit ec812fa

Please sign in to comment.