Use sys.exit instead of global
This commit is contained in:
parent
51131813a3
commit
05e15e27ef
3 changed files with 7 additions and 6 deletions
|
|
@ -8,6 +8,7 @@ import os
|
|||
import re
|
||||
import yaml
|
||||
import six
|
||||
import sys
|
||||
|
||||
from ..project import Project
|
||||
from ..service import ConfigError
|
||||
|
|
@ -69,7 +70,7 @@ If it's at a non-standard location, specify the URL with the DOCKER_HOST environ
|
|||
else:
|
||||
log.error(e)
|
||||
|
||||
exit(1)
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
return Project.from_config(self.project_name, config, self.client)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue