Skip to content

Commit b893c50

Browse files
committed
Pleasing Pylint
1 parent 3d23c09 commit b893c50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

image_preview_thumbnailer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,12 @@ def wikipedia_download_img(url_match, config=PluginConfig()):
238238
return out_filepath
239239

240240
def pixabay_download_img(url_match, config=PluginConfig()):
241-
API_KEY = os.environ.get('PIXABAY_API_KEY')
242-
if not API_KEY:
241+
api_key = os.environ.get('PIXABAY_API_KEY')
242+
if not api_key:
243243
LOGGER.warning("$PIXABAY_API_KEY not set, cannot download image from page: %s", url_match.string)
244244
return None
245245
resp = requests.get('https://pixabay.com/api/',
246-
params={"key": API_KEY, "id": url_match.group(1)},
246+
params={"key": api_key, "id": url_match.group(1)},
247247
timeout=config.timeout, verify=config.cert_verify,
248248
headers={'User-Agent': config.user_agent})
249249
if resp.status_code != 200:

0 commit comments

Comments
 (0)