From 3c9e6a6736a003aa44fe8f14ab9eae2d0638a752 Mon Sep 17 00:00:00 2001 From: stoneLeaf Date: Thu, 12 Apr 2012 03:02:46 +0200 Subject: [PATCH] Added a check to the oblique plugin Checks if lines can be split. --- plugins/oblique.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/oblique.py b/plugins/oblique.py index a39b91f..9f0cd37 100644 --- a/plugins/oblique.py +++ b/plugins/oblique.py @@ -19,6 +19,9 @@ def update_commands(force=False): if not line.strip(): continue + if line.strip().find(" ") == -1: + continue + name, url = line.strip().split(None, 1) commands[name] = url