Skip to content

Commit

Permalink
Quick fix for a bot-crashing issue resolving youtube links due to wha…
Browse files Browse the repository at this point in the history
…t I assume was a directory typo

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4894 316c924e-a436-60f5-8080-3fe189b3f50e
  • Loading branch information
quartz235@gmail.com committed Oct 16, 2012
1 parent 9e0d1ca commit d766c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/YTCv4.py
Expand Up @@ -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.
Expand Down

0 comments on commit d766c48

Please sign in to comment.