Description: Upstream changes introduced in version 0+r141-1jolicloud1+l2
 This patch has been created by dpkg-source during the package build.
 Here's the last changelog entry, hopefully it gives details on why
 those changes were made:
 .
 pybootchartgui (0+r141-1jolicloud1+l2) robby-lucid; urgency=low
 .
   * Since proc_ps.log can produce blank lines, this causes draw.py to
     crash.  Add try/except loop around PID regex logic.
 .
 The person named in the Author field signed this changelog entry.
Author: Adam McDaniel <adam@jolicloud.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- pybootchartgui-0+r141.orig/pybootchartgui/draw.py
+++ pybootchartgui-0+r141/pybootchartgui/draw.py
@@ -102,8 +102,10 @@ STATE_COLORS = [(0,0,0,0), PROC_COLOR_R,
 
 # Convert ps process state to an int
 def get_proc_state(flag):
-	return "RSDTZXW".find(flag) + 1
-	
+	try:
+		return "RSDTZXW".find(flag) + 1
+	except:
+		return STATE_UNDEFINED
 
 def draw_text(ctx, text, color, x, y):
 	ctx.set_source_rgba(*color)
