Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlchain/cli/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@click.argument('file', nargs=1, required=False, default='mlconfig.yaml')
def init_command(file):
if file is None:
file = 'mlconfig.yaml'
file = 'mlconfig.yaml' # pragma: no cover
if os.path.exists(file):
logger.warning("File {} exists. Please change name file".format(file))
else:
Expand Down
4 changes: 2 additions & 2 deletions mlchain/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def main(as_module=False, is_testing=False):
cli.add_command(serve_command)
if is_testing:
return cli
cli.main(args=sys.argv[1:], prog_name="python -m mlchain" if as_module else None)
cli.main(args=sys.argv[1:], prog_name="python -m mlchain" if as_module else None) # pragma: no cover

if __name__ == "__main__":
if __name__ == "__main__": # pragma: no cover
cli = main(as_module=True)
9 changes: 3 additions & 6 deletions mlchain/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@

try:
from .flask_server import FlaskServer
except Exception as ex:
except Exception as ex: # pragma: no cover
import warnings

warnings.warn("Can't import FlaskServer. {0}".format(ex))

try:
from .quart_server import QuartServer
except Exception as ex:
except Exception as ex: # pragma: no cover
import warnings

warnings.warn("Can't import QuartServer. {0}".format(ex))

try:
from .grpc_server import GrpcServer
except Exception as ex:
except Exception as ex: # pragma: no cover
import warnings

warnings.warn("Can't import GrpcServer. {0}".format(ex))
1 change: 1 addition & 0 deletions mlchain/server/static/image_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading