Traceback (most recent call last):


 "/.../apps/frappe/frappe/app.py", line 61, in application

response = frappe.handler.handle()


 "/.../apps/frappe/frappe/handler.py", line 21, in handle

data = execute_cmd(cmd)


 "/.../apps/frappe/frappe/handler.py", line 56, in execute_cmd

return frappe.call(method, **frappe.form_dict)


 "/.../apps/frappe/frappe/__init__.py", line 1036, in call

return fn(*args, **newargs)


 "/.../apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/.../apps/frappe/frappe/model/document.py", line 260, in save

return self._save(*args, **kwargs)


 "/.../apps/frappe/frappe/model/document.py", line 296, in _save

self.run_before_save_methods()


 "/.../apps/frappe/frappe/model/document.py", line 876, in run_before_save_methods

self.run_method("validate")


 "/.../apps/frappe/frappe/model/document.py", line 772, in run_method

out = Document.hook(fn)(self, *args, **kwargs)


 "/.../apps/frappe/frappe/model/document.py", line 1048, in composer

return composed(self, method, *args, **kwargs)


 "/.../apps/frappe/frappe/model/document.py", line 1031, in runner

add_to_return_value(self, fn(self, *args, **kwargs))


 "/.../apps/frappe/frappe/model/document.py", line 766, in <lambda>

fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)


 "/.../apps/erpnext/erpnext/stock/doctype/item/item.py", line 120, in validate

self.make_thumbnail()


 "/.../apps/erpnext/erpnext/stock/doctype/item/item.py", line 273, in make_thumbnail

file_doc.make_thumbnail()


 "/.../apps/frappe/frappe/core/doctype/file/file.py", line 201, in make_thumbnail

image, filename, extn = get_web_image(self.file_url)


 "/.../apps/frappe/frappe/core/doctype/file/file.py", line 409, in get_web_image

image = Image.open(StringIO(frappe.safe_decode(r.content)))
TypeError: initial_value must be str or None, not bytes


Traceback (most recent call last):


 "scripts\retriever\build_tfidf.py", line 183, in <module>

args, 'sqlite', {'db_path': args.db_path}


 "scripts\retriever\build_tfidf.py", line 114, in get_count_matrix

for b_row, b_col, b_data in workers.imap_unordered(_count, batch):


 "C:\Users\cguzelha\AppData\Local\Continuum\Anaconda3\envs\py3\lib\multiprocessing\pool.py", line 735, in next

raise value

TypeError: 'NoneType' object is not subscriptable
