Skip to content
This repository was archived by the owner on Aug 4, 2023. It is now read-only.

Commit c4290ee

Browse files
committed
Update sanic references
1 parent 01395aa commit c4290ee

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

flamingo/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
# pylint: disable=wrong-import-position
22
import os
33
import sys
4+
5+
from sanic_rest import exceptions
6+
47
sys.path.append(os.path.dirname(__file__))
58

69
from sanic import Sanic
710
from sanic_openapi import swagger_blueprint
811

912
import settings
1013
import views
11-
import exceptions
1214

1315
app = Sanic(name='flamingo', error_handler=exceptions.rest_error_handler)
1416
app.update_config(settings)

flamingo/models/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from typing import List
33

44
from gcp_pilot.datastore import EmbeddedDocument
5+
from sanic_rest import exceptions
56

6-
import exceptions
77
import settings
88
from models.buildpack import BuildPack
99
from models.label import Label

flamingo/models/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from gcp_pilot.build import AnyEventType, CloudBuild
44
from gcp_pilot.datastore import EmbeddedDocument
55
from github import Github
6+
from sanic_rest import exceptions
67

7-
import exceptions
88
import settings
99
from models.project import Project
1010

flamingo/views/app_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from sanic import Blueprint
44
from sanic.request import Request
5+
from sanic_rest import exceptions
56

6-
import exceptions
77
from models.app import App
88
from models.database import Database
99
from models.env_var import EnvVar

0 commit comments

Comments
 (0)