Quick fix for a bot-crashing issue resolving youtube links due to what I assume was a directory typo

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4894 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
quartz235@gmail.com
2012-10-16 23:30:50 +00:00
parent 9e0d1ca164
commit d766c48d83

View File

@@ -29,7 +29,7 @@ def YTCV4(youtube_url,cache=1,debug=0):
try:
prev_dict = pickle.load(tiedosto)
except EOFError: # Cache is corrupt
os.remove(directory+"/nano/"+tiedosto.name)
os.remove(directory+tiedosto.name)
print "REMOVED CORRUPT CACHE: "+tiedosto.name
prev_dict = {}
tiedosto.close() # I think this should belong here.