Blackhole option not creating the nzb files - added write argument to f.open

This commit is contained in:
Remy
2011-08-08 19:15:49 -07:00
parent fcff340f91
commit e3bc4a68ef

View File

@@ -415,7 +415,7 @@ def searchNZB(albumid=None, new=False):
nzb_name = nzb_folder_name + '.nzb'
download_path = os.path.join(headphones.BLACKHOLE_DIR, nzb_name)
try:
f = open(download_path)
f = open(download_path, 'w')
f.write(data)
f.close()
except Exception, e: