Skip to content

Commit

Permalink
fix: catch empty top_list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sieboldianus committed Jan 29, 2019
1 parent 5518f08 commit b5b4a5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tagmaps/classes/cluster.py
Expand Up @@ -57,7 +57,10 @@ def __init__(self, bounds: AnalysisBounds,
self.cleaned_post_dict = cleaned_post_dict
self.cleaned_post_list = cleaned_post_list
self.top_list = top_list
self.top_item = top_list[0]
if self.top_list:
self.top_item = top_list[0]
else:
self.top_item = None
self.total_distinct_locations = total_distinct_locations
self.autoselect_clusters = False
self.sel_colors = None
Expand Down

0 comments on commit b5b4a5e

Please sign in to comment.