mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-19 22:58:30 +00:00
Fixed AddTorrents crashing on folders containing unicode characters
This commit is contained in:
parent
8de9843e7e
commit
bd13457f33
@ -227,7 +227,13 @@ class AddTorrents(BaseMode, component.Component):
|
|||||||
size_str = "%i items" % size
|
size_str = "%i items" % size
|
||||||
else:
|
else:
|
||||||
size_str = " unknown"
|
size_str = " unknown"
|
||||||
cols = [filename.decode("utf8"), size_str, common.fdate(time)]
|
|
||||||
|
try:
|
||||||
|
filename = filename.decode("utf8")
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
cols = [filename, size_str, common.fdate(time)]
|
||||||
widths = [self.cols - 35, 12, 23]
|
widths = [self.cols - 35, 12, 23]
|
||||||
self.formatted_rows.append(format_utils.format_row(cols, widths))
|
self.formatted_rows.append(format_utils.format_row(cols, widths))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user