mirror of
https://github.com/captbaritone/webamp.git
synced 2026-08-03 15:34:25 +00:00
Set temp file extension correctly
This commit is contained in:
parent
7f8cb1e2e9
commit
3b281171b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue