1
0
Fork 0
mirror of https://github.com/shouptech/flask-tutorial.git synced 2026-02-03 07:29:42 +00:00
flask-tutorial/flaskr/exceptions.py
Mike Shoup a6162261d9 Raise exception when variables are missing
Raises a ConfigError exception when configuration variables are missing.
2018-11-04 08:41:43 -07:00

7 lines
161 B
Python

class Error(Exception):
"""Base class for exceptions"""
pass
class ConfigError(Error):
"""Raised when a needed configuration is missing"""
pass