bug 1367329 - fix error handling code in mozversioncontrol. r?gps draft
authorTed Mielczarek <ted@mielczarek.org>
Thu, 22 Jun 2017 12:54:25 -0400
changeset 599058 7cfcf1f9bc0480c65fd29682b360d64874ef9305
parent 597264 7a6baa6cca3292e8099e652b64d27e74df560874
child 634670 2bd913be2dd8f08526b0d8c940b141e5c7e7ebe0
push id65414
push userbmo:ted@mielczarek.org
push dateThu, 22 Jun 2017 16:54:57 +0000
reviewersgps
bugs1367329
milestone56.0a1
bug 1367329 - fix error handling code in mozversioncontrol. r?gps MozReview-Commit-ID: Bu5FA9PhxJY
python/mozversioncontrol/mozversioncontrol/__init__.py
--- a/python/mozversioncontrol/mozversioncontrol/__init__.py
+++ b/python/mozversioncontrol/mozversioncontrol/__init__.py
@@ -21,18 +21,18 @@ def get_tool_path(tool):
     try:
         return which.which(tool + '.exe')
     except which.WhichError:
         try:
             return which.which(tool)
         except which.WhichError as e:
             print(e)
 
-    raise Exception('Unable to obtain %s path. Try running ' +
-                    '|mach bootstrap| to ensure your environment is up to ' +
+    raise Exception('Unable to obtain %s path. Try running '
+                    '|mach bootstrap| to ensure your environment is up to '
                     'date.' % tool)
 
 class Repository(object):
     '''A class wrapping utility methods around version control repositories.'''
     def __init__(self, path, tool):
         self.path = os.path.abspath(path)
         self._tool = get_tool_path(tool)
         self._env = os.environ.copy()