cleanup
This commit is contained in:
@@ -675,7 +675,7 @@ def command_wp(argv, lang='de', **args):
|
|||||||
if 'wp' != argv[0]:
|
if 'wp' != argv[0]:
|
||||||
return
|
return
|
||||||
|
|
||||||
log.plugin('wp plugin called')
|
log.plugin('plugin called')
|
||||||
|
|
||||||
query = ' '.join(argv[1:])
|
query = ' '.join(argv[1:])
|
||||||
|
|
||||||
@@ -698,7 +698,7 @@ def command_wp(argv, lang='de', **args):
|
|||||||
lang, urllib.parse.urlencode(api)
|
lang, urllib.parse.urlencode(api)
|
||||||
)
|
)
|
||||||
|
|
||||||
log.plugin('wp: fetching %s' % apiurl)
|
log.plugin('fetching %s' % apiurl)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = urllib.request.urlopen(apiurl)
|
response = urllib.request.urlopen(apiurl)
|
||||||
|
|||||||
Reference in New Issue
Block a user