aspell: Be silent if no word is given
authorMikael Berthe <mikael@lilotux.net>
Wed, 02 May 2007 20:42:28 +0200
changeset 27 c66d39c6c27b
parent 26 8a1893b6b113
child 28 f7d12d2d39bc
aspell: Be silent if no word is given
plugins/aspell_plugin.py
--- a/plugins/aspell_plugin.py	Wed May 02 20:39:20 2007 +0200
+++ b/plugins/aspell_plugin.py	Wed May 02 20:42:28 2007 +0200
@@ -11,6 +11,9 @@
     cmd = ['/usr/bin/aspell', '-a']
     reply = ""
 
+    if not parameters:
+        return
+
     LC, encoding = locale.getdefaultlocale()
 
     # Check if the language is specified (two-letter code)