Skip to content

Commit

Permalink
Merge pull request #318 from HappyBerrysBoy/master
Browse files Browse the repository at this point in the history
add nonetype check
  • Loading branch information
ety001 committed Jun 16, 2023
2 parents b99a7dd + 4711244 commit 338ab8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hive/server/common/mutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ def lists(cls, name, rep):
inst = cls.instance()

# update hourly
if perf() - inst.fetched > 3600:
# add inst.fetched type check to avoid NoneType error
if inst.fetched is not None and perf() - inst.fetched > 3600:
inst.load()

if name not in inst.blist_map:
Expand Down

0 comments on commit 338ab8e

Please sign in to comment.