Skip to content

Commit

Permalink
Fix import-path for werkzeug module-path changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Dec 9, 2019
1 parent 743c2cd commit b95d8b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scout/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
from playhouse.sqlite_ext import CSqliteExtDatabase as SqliteExtDatabase
except ImportError:
pass
from werkzeug import secure_filename
try:
from werkzeug import secure_filename
except ImportError:
from werkzeug.utils import secure_filename


if sys.version_info[0] == 2:
Expand Down

0 comments on commit b95d8b2

Please sign in to comment.