Merge pull request #234 from dshulyak/fix_exc

Fix forgotten exception in graph.py
This commit is contained in:
Jędrzej Nowak 2015-10-08 17:09:35 +02:00
commit b20a4acc1c
2 changed files with 6 additions and 1 deletions

View File

@ -35,3 +35,7 @@ class LexError(SolarError):
class ParseError(SolarError): class ParseError(SolarError):
pass pass
class ExecutionTimeout(SolarError):
pass

View File

@ -19,6 +19,7 @@ import networkx as nx
from solar import utils from solar import utils
from .traversal import states from .traversal import states
from solar import errors
from collections import Counter from collections import Counter
@ -178,4 +179,4 @@ def wait_finish(uid, timeout):
return return
else: else:
raise errors.ExecutionTimeout( raise errors.ExecutionTimeout(
'Next tasks wasnt able to finish: %s' % not_finished) 'Run %s wasnt able to finish' % uid)