diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 21269935..6f1b525e 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -144,7 +144,10 @@ class UiWebsocketPlugin(object): else: size = size_filetypes.get(extension, 0) size_other -= size - percent = 100 * (float(size) / size_total) + if size_total == 0: + percent = 0 + else: + percent = 100 * (float(size) / size_total) body.append(u"
  • " % (percent, extension, color, extension)) # Legend