From d9c2d976e2123f271f3114f99827781fa478d8b8 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Sun, 24 Apr 2011 21:58:28 -0400 Subject: [PATCH] hs: deal with blank queries --- modules/hs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/hs.py b/modules/hs.py index fd5a7bd..9053899 100755 --- a/modules/hs.py +++ b/modules/hs.py @@ -17,14 +17,15 @@ def search(query): if len(result) <= 0: return False - print "wtf" - return result def hs(phenny, input): """.hs - Search for someone on Virginia Tech People Search.""" q = input.group(2) + if q is None: + return + q = q.strip() # initially try search by PID s = search('uupid=%s' % q)