title: AttributeError: 'NoneType' object has no attribute 'start'
body: <pre><code>Traceback (most recent call last):
    File "NinjaWarzBot.py", line 354, in &lt;module&gt;
      stats = comm.init()
    File "C:\Users\Administrator\Desktop\ninja warz bot\NinjaWarzLib.py", line 33,
   in init
      mf.seek(m.start()+len(cookieKey)) # reset file cursor
  AttributeError: 'NoneType' object has no attribute 'start'
  Press any key to continue . . .
  
  def init():
      cookieDBFilename = os.path.join(os.environ['USERPROFILE'], "AppData/Local/Google/Chrome/User Data/Default/Cookies")
      cookieKey = "kongregate.ninjawarz.brokenbulbstudios.comPHPSESSID"
      f = open(cookieDBFilename, 'r+b')
      mf = mmap.mmap(f.fileno(), 0)
      mf.seek(0) # reset file cursor
      m = re.search(cookieKey+'\w+', mf)
  
      mf.seek(m.start()+len(cookieKey)) # reset file cursor
      global _sessionId
      _sessionId = mf.read(m.end() - m.start() -len(cookieKey))
      mf.close()
      f.close()
  
      return getMyStats()
  </code></pre>
  
  <p>That's my error and code. I'm confused as to why i'm getting this error. Can someone please help me? It's getting frustrating.</p>