-
Notifications
You must be signed in to change notification settings - Fork 58
Patch for import error #58
Copy link
Copy link
Open
Description
Hi, I have python 3.10 and this error append everytime i start the script. I fixed it by changing 2 lines of code in flask_uploads.py. Here's my version of Flask/Werkzeug/Flask-Uploads :
Name: Werkzeug Name: Flask Name: Flask-Uploads
Version: 3.0.3 Version: 3.0.3 Version: 0.2.1
Idk how to make pull requests so i put the code to modify here :
Replace in flask-uplads.py at line 26 :
from werkzeug import secure_filename, FileStorage
by :
try:
from werkzeug import secure_filename, FileStorage
except ImportError:
from werkzeug.utils import secure_filename
from werkzeug.datastructures.file_storage import FileStorage
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels