Set temp file extension correctly

This commit is contained in:
Jordan Eldredge 2018-08-09 11:19:53 -04:00
parent 7f8cb1e2e9
commit 3b281171b0

View file

@ -150,7 +150,7 @@ def tweet_skin(md5):
skin_url = get_skin_url(md5)
screenshot_url = get_screenshot_url(md5)
screenshot_path = NamedTemporaryFile(suffix="png").name
screenshot_path = NamedTemporaryFile(suffix=".png").name
urllib.request.urlretrieve(screenshot_url, screenshot_path)
if not url_is_good(skin_url):