Browse files

added unicode error check

  • Loading branch information...
1 parent f44e6b6 commit 5849eb2322669a9f2ad40ed87a2f6224f6a01d36 @Steve-V committed Dec 31, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/head.py
View
2 modules/head.py
@@ -187,6 +187,8 @@ def showtitle(phenny, input):
title = gettitle(uri)
except IOError:
pass
+ except UnicodeEncodeError:
+ return phenny.say("Unencodable character in link")
else:
if title is None: pass
elif title is Ellipsis: pass

0 comments on commit 5849eb2

Please sign in to comment.