From 0ee53d4082c858fc2605a99639c2e3e64b98ad39 Mon Sep 17 00:00:00 2001 From: Andrey Shpak Date: Sun, 7 Jun 2020 16:32:52 +0300 Subject: [PATCH 1/2] Remove general Exception raising --- flask_mongoengine/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_mongoengine/__init__.py b/flask_mongoengine/__init__.py index d917aa65..06b161f8 100644 --- a/flask_mongoengine/__init__.py +++ b/flask_mongoengine/__init__.py @@ -104,7 +104,7 @@ def __init__(self, app=None, config=None): def init_app(self, app, config=None): if not app or not isinstance(app, Flask): - raise Exception("Invalid Flask application instance") + raise TypeError("Invalid Flask application instance") self.app = app @@ -119,7 +119,7 @@ def init_app(self, app, config=None): if self in app.extensions["mongoengine"]: # Raise an exception if extension already initialized as # potentially new configuration would not be loaded. - raise Exception("Extension already initialized") + raise ValueError("Extension already initialized") if not config: # If not passed a config then we read the connection settings From 6daa6e1542418884560cccd6d42257eaf207ea67 Mon Sep 17 00:00:00 2001 From: Andrey Shpak Date: Sun, 7 Jun 2020 17:35:08 +0300 Subject: [PATCH 2/2] Disable codecov comments globally --- codecov.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..69cb7601 --- /dev/null +++ b/codecov.yml @@ -0,0 +1 @@ +comment: false