Skip to content

Commit

Permalink
Fix/mw.col is None when switch profile
Browse files Browse the repository at this point in the history
  • Loading branch information
L-M-Sherlock committed May 8, 2024
1 parent 86199dd commit 1fefa34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions schedule/disperse_siblings.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ def disperse(siblings):
def disperse_siblings(
did, filter_flag=False, filtered_nid_string="", text_from_reschedule=""
):
if not mw.col:
return None
if not mw.col.get_config("fsrs"):
tooltip(FSRS_ENABLE_WARNING)
return None
Expand Down

0 comments on commit 1fefa34

Please sign in to comment.