Skip to content
Snippets Groups Projects
Commit a0caa4d2 authored by Dicson's avatar Dicson
Browse files

Fix AcronymsExpander plugin

parent cb2a3467
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,7 @@ Acronyms expander plugin.
'''
import sys
import os
import gtk
import gobject
......@@ -63,6 +64,8 @@ class AcronymsExpanderPlugin(GajimPlugin):
@log_calls('AcronymsExpanderPlugin')
def get_own_acronyms_list(self):
data_file = self.local_file_path('acronyms')
if not os.path.isfile(data_file):
return {}
data = open(data_file, 'r')
acronyms = eval(data.read())
data.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment