Menu

#2 Missing directory breaks coverart download

open
nobody
5
2012-04-16
2012-01-04
No

When importing some games I get the following traceback:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/grotesque/storyimportthread.py", line 137, in import_stories
ifdb.fetch_cover_art(story, self.coverart_dir, xmlfile)
File "/usr/lib/python2.7/site-packages/treatyofbabel/ifdb.py", line 147, in fetch_cover_art
urlretrieve(coverart_url, temp_img)
File "/usr/lib/python2.7/urllib.py", line 91, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 241, in retrieve
tfp = open(filename, 'wb')
IOError: [Errno 21] Is a directory: '/home/bexie/.local/share/grotesque/covers/temp'

Manually creating the ~/.local/share/grotesque/covers directory solves the issue.

Discussion


Log in to post a comment.