From cdc8942c7db01a636199e9cde193302ffa896b2a Mon Sep 17 00:00:00 2001 From: GLolol Date: Sat, 17 May 2014 22:10:31 -0700 Subject: [PATCH] SysDNS: bugfix --- SysDNS/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SysDNS/plugin.py b/SysDNS/plugin.py index 3392c8c..ebb53d4 100644 --- a/SysDNS/plugin.py +++ b/SysDNS/plugin.py @@ -60,7 +60,7 @@ class SysDNS(callbacks.Plugin): else: try: args = [cmd, '-t', dict(optlist)['type'], text] - except IndexError: + except KeyError: args = [cmd, text] try: with open(os.devnull) as null: