encode filename before opening
This commit is contained in:
parent
909b0904d4
commit
c2e0129438
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ def make_meta_file(file, url, params = {}, flag = Event(),
|
|||
if flag.isSet():
|
||||
return
|
||||
check_info(info)
|
||||
h = open(f, 'wb')
|
||||
h = open(f.encode(encoding), 'wb')
|
||||
data = {'info': info, 'announce': url.strip(), 'creation date': int(time())}
|
||||
|
||||
if 'comment' in params and params['comment']:
|
||||
|
|
Loading…
Reference in a new issue