aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gsxws.py b/gsxws.py
index 99db20f..23e3022 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -576,7 +576,7 @@ class Part(GsxObject):
image = '%s_350_350.gif' % self.partNumber
url = 'https://km.support.apple.com.edgekey.net/kb/imageService.jsp?image=%s' % image
- tmpfile = tempfile.NamedTemporaryFile(suffix=filename)
+ tmpfile = tempfile.NamedTemporaryFile(suffix=image)
try:
result = urllib.urlretrieve(url, tmpfile.name)