Skip to content

Commit d7a8e3e

Browse files
pyhedgehogguyzmo
authored andcommitted
Fix text of some errors
1 parent eccddf9 commit d7a8e3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git_repo/services/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def store_config(cls, config, **kwarg):
7878
section = 'gitrepo "{}"'.format(cls.name)
7979
for option, value in kwarg.items():
8080
if option not in cls.config_options:
81-
raise ArgumentError('Option {} is invalid and cannot be setup.')
81+
raise ArgumentError('Option {} is invalid and cannot be setup.'.format(option))
8282
config.set_value(section, option, value)
8383

8484
@classmethod
@@ -120,7 +120,7 @@ def get_service(cls, repository, command):
120120
if 'type' not in config:
121121
raise ValueError('Missing service type for custom service.')
122122
if config['type'] not in cls.service_map:
123-
raise ValueError('Service type {} does not exists.')
123+
raise ValueError('Service type {} does not exists.'.format(config['type']))
124124
service = cls.service_map.get(config['type'], cls)
125125

126126
cls._current = service(repository, config)

0 commit comments

Comments
 (0)