title: Python ExceptIndex issue?
body: <p>I have a tab delimited file with 8 columns that has the following context for example</p>
  
  <pre><code>Timestamp  Process   TID        Area            Category     EventID    Level           Message         Correlation 
  
  06/21/2014 09:19:02.94  wsstracing.exe (0x068C)                         0x0698  SharePoint Foundation           Tracing Controller Service      5152    Information     Tracing Service started.     
  
  06/21/2014 09:19:09.94  hostcontrollerservice.exe (0x063C)              0x0670  SharePoint Server               Unified Logging Service         b8fx    High            ULS Init Completed (hostcontrollerservice.exe, Microsoft.Office.Server.Native.dll)         
  </code></pre>
  
  <p><strong><a href="http://pastebin.com/f9dmrQtU" rel="nofollow">http://pastebin.com/f9dmrQtU</a></strong></p>
  
  <p>The code I have currently </p>
  
  <pre><code>try:
      with open('text.log') as f:
          for l in f:
              print(l.strip().split("\t")[5], end=" "),
              print(l.strip().split("\t")[7], end=" "),
              print(l.strip().split("\t")[8], end="\n")
  except IndexError:
      pass
  </code></pre>
  
  <p>Gives me </p>
  
  <pre><code>EventID Message  Correlation
  
  5152 Tracing Service started. Press any key to continue . . .
  </code></pre>
  
  <p>As you can see it stops after the first entry because there is nothing in the 8th column anymore.</p>
  
  <p>When what I need is it to print is something like even if there is nothing under the correlation column</p>
  
  <pre><code>EventID          Message              Correlation
  
  1124             blahblahblah         blahblah
  </code></pre>
  
  <p>However when I have the following code</p>
  
  <pre><code>try:
      with open('text.log') as f:
          for l in f:
              print(l.strip().split("\t")[5], end=" "),
              print(l.strip().split("\t")[7])
  </code></pre>
  
  <p>but prints it in the correct format could anyone provide some assistance?</p>