From 77dbaf3aef010fd48b443af97861b74f1b728229 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 9 Feb 2014 20:19:04 -0800 Subject: [PATCH] Fix for Python out-of-range exception when accessing Bindings tab --- share/tools/web_config/webconfig.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index 52d9990bc..3eb110bb4 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -291,7 +291,8 @@ class BindingParser: def get_char(self): """ Gets next character from buffer """ - + if self.index >= len(self.buffer): + return '\0' c = self.buffer[self.index] self.index += 1 return c