Skip to content

Commit

Permalink
ignore exception in common.addon when atempting to unescape non strin…
Browse files Browse the repository at this point in the history
…gy types
  • Loading branch information
t0mm0 committed Oct 31, 2011
1 parent e59eadd commit ed868f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions script.module.t0mm0.common/lib/t0mm0/common/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ def unescape(self, text):
text = text.replace(s, r)
# this has to be last:
text = text.replace("&", "&")

#we don't want to fiddle with non-string types
except TypeError:
pass

return text


Expand Down

0 comments on commit ed868f2

Please sign in to comment.