]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Move MaxWhileTries to the exceptions module
authorZack Cerza <zack@redhat.com>
Tue, 24 May 2016 23:12:23 +0000 (17:12 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 25 May 2016 15:55:19 +0000 (09:55 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/contextutil.py
teuthology/exceptions.py

index c3ae7fe1d875565e61bb87c076f962238e721c97..be9800301a083b6d73b5a08741f09d501749f475 100644 (file)
@@ -3,7 +3,9 @@ import sys
 import logging
 import time
 import itertools
+
 from .config import config
+from .exceptions import MaxWhileTries
 
 log = logging.getLogger(__name__)
 
@@ -52,10 +54,6 @@ def nested(*managers):
             raise exc[0], exc[1], exc[2]
 
 
-class MaxWhileTries(Exception):
-    pass
-
-
 class safe_while(object):
     """
     A context manager to remove boiler plate code that deals with `while` loops
index c12700d92fe295d4a6540c9291d9695687351e51..c3dbbde780ff070366a8ffa7be19405e752c3b9a 100644 (file)
@@ -154,3 +154,7 @@ class SkipJob(Exception):
     be skipped.
     """
     pass
+
+
+class MaxWhileTries(Exception):
+    pass