Fix hang on opening addons tab, having a .py file without bl_addon_info

would go into eternal loop.
This commit is contained in:
Brecht Van Lommel 2010-08-04 15:52:59 +00:00
parent 3840b0c206
commit 0aef61caef

@ -853,6 +853,8 @@ class USERPREF_PT_addons(bpy.types.Panel):
l = ""
while not l.startswith("bl_addon_info"):
l = line_iter.readline()
if len(l) == 0:
break
while l.rstrip():
lines.append(l)
l = line_iter.readline()