Skip to content

Commit

Permalink
Update categories/templatetags/category_tags.py
Browse files Browse the repository at this point in the history
Added str() to line 49 to fix an error where .strip("'\"") in get_category is getting called on a non-string category_string.
  • Loading branch information
iepathos committed Feb 24, 2013
1 parent e8b4a50 commit bdb1d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion categories/templatetags/category_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_category(category_string, model=Category):
Convert a string, including a path, and return the Category object
"""
model_class = get_cat_model(model)
category = category_string.strip("'\"")
category = str(category_string).strip("'\"")
category = category.strip('/')

cat_list = category.split('/')
Expand Down

0 comments on commit bdb1d68

Please sign in to comment.