Permalink
Browse files

Quick fix for a bot-crashing issue resolving youtube links due to wha…

…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...
1 parent 9e0d1ca commit d766c48d83aa3bdbe2d84c1ece29f894c6d21271 quartz235@gmail.com committed Oct 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bot/YTCv4.py
View
@@ -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.

0 comments on commit d766c48

Please sign in to comment.