Exception saving xml file when folder not present

DEBUG (logkit:13) - urlLoadXml - url: http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=4878, filename: AniDB/4878.xml
2014-06-26 01:54:18,841 (53d8) :  CRITICAL (core:561) - Exception writing to C:\Users\Ofek\AppData\Local\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\AniDB\4878.xml (most recent call last):
  File "C:\Users\Ofek\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py", line 79, in save
    f = open(tempfile, mode)
  File "C:\Users\Ofek\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py", line 64, in builtins_open
    return __builtins__['_open'](longpathify(uni(filename)), mode)
IOError: [Errno 2] No such file or directory: u'\\\\?\\C:\\Users\\Ofek\\AppData\\Local\\Plex Media Server\\Plug-in Support\\Data\\com.plexapp.agents.hama\\DataItems\\AniDB\\._4878.xml'

2014-06-26 01:54:18,842 (53d8) :  DEBUG (logkit:13) - parseAniDBXml - AniDB Serie XML: Exception raised
2014-06-26 01:54:18,845 (53d8) :  CRITICAL (core:561) - Exception in the update function of agent named 'HamaTV', called with guid 'com.plexapp.agents.hama://4878?lang=en' (most recent call last):
  File "C:\Users\Ofek\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 970, in _update
    agent.update(obj, media, lang, force)
  File "C:\Users\Ofek\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 954, in update
    def update(self, metadata, media, lang, force ): self.parseAniDBXml(metadata, media, lang, force,  False )
  File "C:\Users\Ofek\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Code\__init__.py", line 582, in parseAniDBXml
    elif "s"+defaulttvdbseason+"e"+str(epNumVal) in tvdbSummary:    tvdb_ep = "s"+defaulttvdbseason+"e"+str(epNumVal)
ValueError