mirror of https://github.com/scrapy/scrapy.git
decompressionmw: relative hardcoded filename raises OSError when process has not write access to CWD
This commit is contained in:
parent
d175ced4a1
commit
2c93bc40c6
|
|
@ -26,7 +26,7 @@ class DecompressionMiddleware(object):
|
|||
|
||||
def is_tar(self, response):
|
||||
try:
|
||||
tar_file = tarfile.open(name='tar.tmp', fileobj=self.archive)
|
||||
tar_file = tarfile.open(fileobj=self.archive)
|
||||
except tarfile.ReadError:
|
||||
return False
|
||||
if tar_file.members:
|
||||
|
|
|
|||
Loading…
Reference in New Issue