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

Commit

Permalink
Update sanic references
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodaher committed Mar 7, 2021
1 parent 01395aa commit c4290ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion flamingo/main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# pylint: disable=wrong-import-position
import os
import sys

from sanic_rest import exceptions

sys.path.append(os.path.dirname(__file__))

from sanic import Sanic
from sanic_openapi import swagger_blueprint

import settings
import views
import exceptions

app = Sanic(name='flamingo', error_handler=exceptions.rest_error_handler)
app.update_config(settings)
Expand Down
2 changes: 1 addition & 1 deletion flamingo/models/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from typing import List

from gcp_pilot.datastore import EmbeddedDocument
from sanic_rest import exceptions

import exceptions
import settings
from models.buildpack import BuildPack
from models.label import Label
Expand Down
2 changes: 1 addition & 1 deletion flamingo/models/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from gcp_pilot.build import AnyEventType, CloudBuild
from gcp_pilot.datastore import EmbeddedDocument
from github import Github
from sanic_rest import exceptions

import exceptions
import settings
from models.project import Project

Expand Down
2 changes: 1 addition & 1 deletion flamingo/views/app_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from sanic import Blueprint
from sanic.request import Request
from sanic_rest import exceptions

import exceptions
from models.app import App
from models.database import Database
from models.env_var import EnvVar
Expand Down

0 comments on commit c4290ee

Please sign in to comment.