0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Flaskエラー】TypeError: exceptions must derive from BaseExceptionが出た時

Posted at

環境

Python 3.9.0
Flask 2.0.1

エラーに詰まったのでメモ

Flaskでflask runすると下記のエラーが発生

TypeError: exceptions must derive from BaseException

エラーをみても例外処理がどうのこうの言われていて全く心当たりがなかった。

解決方法

flask run --eager-loading

本来は遅延読み込みに関する実行方法らしいがこれで本来のエラーが表示されるようになった。

原因

調べてみるとFlaskのバグらしいので次のバージョンでは修正される模様

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?