mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-04 15:12:23 -05:00
Fixed issues caused by new encodingKludge code that was causing errors to be thrown due to function structure being incorrect.
This commit is contained in:
parent
1510ac32ca
commit
e31db53592
@ -32,11 +32,11 @@ def ex(e):
|
||||
|
||||
if arg is not None:
|
||||
if isinstance(arg, (str, unicode)):
|
||||
fixed_arg = toUnicode(arg, True)
|
||||
fixed_arg = toUnicode(arg)
|
||||
|
||||
else:
|
||||
try:
|
||||
fixed_arg = u"error " + toUnicode(str(arg), True)
|
||||
fixed_arg = u"error " + toUnicode(str(arg))
|
||||
|
||||
except:
|
||||
fixed_arg = None
|
||||
|
Loading…
Reference in New Issue
Block a user