From d766c48d83aa3bdbe2d84c1ece29f894c6d21271 Mon Sep 17 00:00:00 2001 From: "quartz235@gmail.com" Date: Tue, 16 Oct 2012 23:30:50 +0000 Subject: [PATCH] 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 --- bot/YTCv4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/YTCv4.py b/bot/YTCv4.py index 28cb7d4cf13..e21facbf504 100644 --- a/bot/YTCv4.py +++ b/bot/YTCv4.py @@ -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.