Skip to content

Commit

Permalink
Removed the unicode error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
p0psicles committed May 14, 2016
1 parent 9918b14 commit 5ca3ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sickbeard/scene_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ def update_scene_exceptions(indexer_id, scene_exceptions, season=-1):
# A change has been made to the scene exception list. Let's clear the cache, to make this visible
if indexer_id in exceptionsCache:
exceptionsCache[indexer_id] = {}
exceptionsCache[indexer_id][season] = [se.decode('utf-8', 'replace') for se in scene_exceptions]
exceptionsCache[indexer_id][season] = [se.decode('utf-8') for se in scene_exceptions]

for cur_exception in [se.decode('utf-8', 'replace') for se in scene_exceptions]:
for cur_exception in [se.decode('utf-8') for se in scene_exceptions]:
cache_db_con.action("INSERT INTO scene_exceptions (indexer_id, show_name, season) VALUES (?,?,?)",
[indexer_id, cur_exception, season])

Expand Down

0 comments on commit 5ca3ff5

Please sign in to comment.