Skip to content

Commit

Permalink
Fix link checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Apr 5, 2020
1 parent 4647316 commit 6a836f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyslvs_ui/main_window/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def new_link(self) -> None:
inter: Counter_t[str] = Counter()
for p in rows:
inter.update(self.vpoint_list[p].links)
name = max(inter, key=inter.get)
name = max(inter, key=inter.get) if inter else ""
if inter[name] < 2:
self.add_normal_link(rows)
return
Expand Down

0 comments on commit 6a836f6

Please sign in to comment.