Fixup error spec in JobQueueMonitorActor.
authorBrett Smith <brett@curoverse.com>
Sun, 5 Oct 2014 02:15:49 +0000 (22:15 -0400)
committerBrett Smith <brett@curoverse.com>
Sun, 5 Oct 2014 02:15:49 +0000 (22:15 -0400)
services/nodemanager/arvnodeman/jobqueue.py

index 9daf5562d76dbc93182ad33a532b062c20918b27..9d29818a64aab8f188e4edecd6fe67af45d0ce69 100644 (file)
@@ -1,8 +1,7 @@
 #!/usr/bin/env python
 
-import arvados.errors as arverror
-
 from . import clientactor
+from .config import ARVADOS_ERRORS
 
 class ServerCalculator(object):
     class SizeWrapper(object):
@@ -60,7 +59,7 @@ class ServerCalculator(object):
 
 
 class JobQueueMonitorActor(clientactor.RemotePollLoopActor):
-    CLIENT_ERRORS = (arverror.ApiError,)
+    CLIENT_ERRORS = ARVADOS_ERRORS
     LOGGER_NAME = 'arvnodeman.jobqueue'
 
     def __init__(self, client, timer_actor, server_calc, *args, **kwargs):