Added error checking for empty parameters
This commit is contained in:
@@ -11,6 +11,8 @@ import web
|
||||
|
||||
def val(phenny, input):
|
||||
"""Check a webpage using the W3C Markup Validator."""
|
||||
if not input.group(2):
|
||||
return phenny.reply("Nothing to validate.")
|
||||
uri = input.group(2)
|
||||
if not uri.startswith('http://'):
|
||||
uri = 'http://' + uri
|
||||
|
||||
Reference in New Issue
Block a user