Skip to content

Commit

Permalink
Adding try/catch to handle changes that are already in develop.
Browse files Browse the repository at this point in the history
Re #6630.
  • Loading branch information
peterfpeterson committed Mar 27, 2013
1 parent 3ed4b9c commit d98a894
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Code/Mantid/docs/qtassistant/make_algorithms_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,12 @@ def process(algos, qhp, outputdir):
versions = algos[name]

alg = mantid.FrameworkManager.createAlgorithm(name, versions[-1])
for category in alg.categories().split(';'):
alg_categories = alg.categories()
try:
alg_categories = alg_categories.split(';')
except AttributeError, e:
pass # the categories are already a list
for category in alg_categories:
category = category.replace('\\', '/')
if not categories.has_key(category):
categories[category] = []
Expand Down

0 comments on commit d98a894

Please sign in to comment.