~cwayne/onehundredscopes/unity-scope-thesaurus

« back to all changes in this revision

Viewing changes to src/unity-scope-thesaurus

  • Committer: Chris Wayne
  • Date: 2012-10-15 20:44:39 UTC
  • Revision ID: chris.wayne@canonical.com-20121015204439-16hqpwxg3hdnt0uk
Fix for if there's no synonyms or antonyms it doesn't crash anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
    def update_results_model (self, scope, model, search_string):
47
47
        if search_string:
48
48
            data_list = []
 
49
            synonyms = []
 
50
            antonyms = []
49
51
            try:
50
52
                synonyms, antonyms = self.thesaurus_search(search_string)
51
53
            except: