Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(service): log error in base service
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Aug 27, 2019
1 parent 8d2fdb6 commit a735a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnes/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def _set_grpc_parser(parser=None):
def set_grpc_service_parser(parser=None):
if not parser:
parser = set_base_parser()
_set_loadable_service_parser(parser)
set_service_parser(parser)
_set_grpc_parser(parser)
parser.add_argument('--pb2_path',
type=str,
Expand Down
2 changes: 1 addition & 1 deletion gnes/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def _get_event(self):

def __init__(self, args):
super().__init__()
if args.py_path:
if 'py_path' in args and args.py_path:
PathImporter.add_modules(*args.py_path)
self.args = args
self.logger = set_logger(self.__class__.__name__, self.args.verbose)
Expand Down

0 comments on commit a735a71

Please sign in to comment.