Update main.py

This commit is contained in:
Remy Moll 2020-09-03 19:04:59 +02:00 committed by GitHub
parent 8ac453762f
commit 64600a6829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -350,9 +350,7 @@ class ChatBot():
"math" : "mathmemes" "math" : "mathmemes"
} }
if len(params) == 0:
number = 1 number = 1
else:
params_sorted = self.match_reddit_params(params) params_sorted = self.match_reddit_params(params)
if params_sorted != None: if params_sorted != None:
if len(params_sorted) >= 1: if len(params_sorted) >= 1: