Tag config - historyEnabled issue

I have a simple script that browse tags contains certain string in name, after I get result I loop through all tags to get configuration and want to print the "path" and the "historyEnabled", somethings goes wrong, only the first tag is printed then the script stop without any explanation.

tags = system.tag.browse(pathToBrowse, filter={"name":"*something","recursive":True})
result = []
for tag in tags:
	config = system.tag.getConfiguration(tag["fullPath"])[0]
	result.append({"path": config["path"], "historyEnabled": config["historyEnabled"]})

for r in result: print r

If you want to collect some tag properties while browsing tags, you should use system.tag.query() instead of system.tag.browse() and system.tag.getConfiguration().

Use the designer's tag report tool to prepare a query that finds the tags you want, and set its output configuration to include the properties you need. Then use the menu option to show you the sample script that does exactly what you want in a single system.* call.