From bd4fbb3251bcacacba0914fd04fca2e64787389d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 21 Apr 2011 14:53:02 +0000 Subject: [PATCH] fix for a bug reported by l0rda@l0rda.biz (TypeError: cannot concatenate 'str' and 'NoneType' objects) --- plugins/generic/filesystem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/generic/filesystem.py b/plugins/generic/filesystem.py index 027a59dd6..0165ea3ca 100644 --- a/plugins/generic/filesystem.py +++ b/plugins/generic/filesystem.py @@ -294,7 +294,8 @@ class Filesystem: else: chunk = "" - newFileContent += chunk + if chunk: + newFileContent += chunk fileContent = newFileContent