[2019-02-20 00:03:44,656] ERROR in app: Exception on /upload [POST]
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/Atc/run.py", line 24, in upload
url=t.upload(filepath)
File "/home/Atc/wb_util.py", line 180, in upload
url = self.request_image_url(image_path)
File "/home/Atc/wb_util.py", line 159, in request_image_url
os.remove(image_path)
OSError: [Errno 2] No such file or directory: './upload/image.png'
[2019-02-20 00:03:44,660] ERROR in app: Exception on /upload [POST]
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib64/python2.7/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/home/Atc/run.py", line 24, in upload
url=t.upload(filepath)
File "/home/Atc/wb_util.py", line 180, in upload
url = self.request_image_url(image_path)
File "/home/Atc/wb_util.py", line 159, in request_image_url
os.remove(image_path)
OSError: [Errno 2] No such file or directory: './upload/image.png'