--> -->
 
 
<type 'exceptions.AttributeError'>
Python 2.6.5: /usr/bin/python
Mon May 21 15:25:39 2012

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/sbp/Dropbox/inamidst.com/stuff/info/youtube.cgi in ()
  101    text(arg.split('=').pop())
  102 elif arg: 
  103    html(arg)
  104 else: print 'A YouTube Video ID is required.'
  105 
html = <function html>, arg = 'v4ijDlbvAxw'
 /home/sbp/Dropbox/inamidst.com/stuff/info/youtube.cgi in html(vid='v4ijDlbvAxw')
   64    print '<!DOCTYPE html> <!-- Try using the full URI as an arg -->'
   65 
   66    title, views, average, raters, duration = data(vid)
   67 
   68    print '<title>' + title + '</title>'
title undefined, views undefined, average undefined, raters undefined, duration undefined, global data = <function data>, vid = 'v4ijDlbvAxw'
 /home/sbp/Dropbox/inamidst.com/stuff/info/youtube.cgi in data(vid='v4ijDlbvAxw')
   37    u.close()
   38 
   39    title = r_title.search(bytes).group(1)
   40    views = int(r_viewCount.search(bytes).group(1))
   41    views = formatnumber(views)
title undefined, global r_title = <_sre.SRE_Pattern object>, r_title.search = <built-in method search of _sre.SRE_Pattern object>, bytes = 'Private video', ).group undefined

<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'group'
      args = ("'NoneType' object has no attribute 'group'",)
      message = "'NoneType' object has no attribute 'group'"