Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed May 30, 2020
1 parent 26fcb28 commit fd2f196
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pyobo/apps/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ def make_gunicorn_app(app: Flask, host: str, port: int, workers: int):
:rtype: gunicorn.app.base.BaseApplication
"""
if not host:
raise ValueError('Must specify host')
if not port:
raise ValueError('Must specify port')

import gunicorn.app.base

class StandaloneApplication(gunicorn.app.base.BaseApplication):
Expand Down

0 comments on commit fd2f196

Please sign in to comment.