[modsearch] Fix search for empty term

master
sfan5 2019-08-02 18:08:05 +02:00
parent fa887e115f
commit 57560eec08
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import web
def mod(phenny, input):
uri = "https://krock-works.uk.to/minetest/modSearchAPI.php?q="
text, sc = web.get(uri + web.urlencode(input.group(2)))
text, sc = web.get(uri + web.urlencode(input.group(2) or ""))
text = str(text, 'utf-8')
data = web.json(text)
answer = ""