diff --git a/rtv/history.py b/rtv/history.py index 8db031e..1ca48fa 100644 --- a/rtv/history.py +++ b/rtv/history.py @@ -38,8 +38,11 @@ def save_history(history): for i in range(200): if not history: break - history_file.write(history.pop() + '\n') - + try: + history_file.write(history.pop() + '\n') + except UnicodeEncodeError: + # Ignore unicode URLS, may want to handle this at some point + continue class OrderedSet(object): """