Traceback (most recent call last):


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs

doc.save()


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 260, in save

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


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 296, in _save

self.run_before_save_methods()


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 876, in run_before_save_methods

self.run_method("validate")


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 772, in run_method

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


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 1048, in composer

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


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 1031, in runner

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


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/model/document.py", line 766, in <lambda>

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


 "/home/gaurav/frappe-bench-v11/apps/erpnext/erpnext/stock/doctype/item/item.py", line 122, in validate

self.make_thumbnail()


 "/home/gaurav/frappe-bench-v11/apps/erpnext/erpnext/stock/doctype/item/item.py", line 269, in make_thumbnail

file_doc.make_thumbnail()


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/core/doctype/file/file.py", line 201, in make_thumbnail

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


 "/home/gaurav/frappe-bench-v11/apps/frappe/frappe/core/doctype/file/file.py", line 409, in get_web_image

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

Traceback (most recent call last):

 "pokecli.py", line 493, in <module>
main()

 "pokecli.py", line 126, in main
if bot:UnboundLocalError: local variable 'bot' referenced before assignment