Skip to content

Commit 1f916d5

Browse files
committed
Remove period from end of exception message
Improves readability of errors when they are appended with "in section x"
1 parent bb0332f commit 1f916d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

supervisor/datatypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def existing_dirpath(v):
342342
if os.path.isdir(dir):
343343
return nv
344344
raise ValueError('The directory named as part of the path %s '
345-
'does not exist.' % v)
345+
'does not exist' % v)
346346

347347
def logging_level(value):
348348
s = str(value).lower()

supervisor/tests/test_datatypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def test_raises_if_dir_does_not_exist(self):
376376
self.fail()
377377
except ValueError as e:
378378
expected = ('The directory named as part of the path %s '
379-
'does not exist.' % path)
379+
'does not exist' % path)
380380
self.assertEqual(e.args[0], expected)
381381

382382
def test_raises_if_exists_but_not_a_dir(self):
@@ -387,7 +387,7 @@ def test_raises_if_exists_but_not_a_dir(self):
387387
self.fail()
388388
except ValueError as e:
389389
expected = ('The directory named as part of the path %s '
390-
'does not exist.' % path)
390+
'does not exist' % path)
391391
self.assertEqual(e.args[0], expected)
392392

393393
def test_expands_home(self):

0 commit comments

Comments
 (0)