Skip to content

Commit dad4ff9

Browse files
authored
Merge pull request #104 from kube-HPC/check_algorithm_is_populated
if init or start were not invoked before stop _algorithm may be None
2 parents c66362b + 5cf6753 commit dad4ff9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

hkube_python_wrapper/wrapper/algorunner.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from hkube_python_wrapper.communication.streaming.StreamingManager import StreamingManager
1717
from hkube_python_wrapper.util.queueImpl import Queue, Empty
1818
from hkube_python_wrapper.util.timerImpl import Timer
19-
from hkube_python_wrapper.util.logger import log ,algorithmLogger
19+
from hkube_python_wrapper.util.logger import log, algorithmLogger
2020
from hkube_python_wrapper.util.url_encode_impl import url_encode
2121
from hkube_python_wrapper.util.stdout_redirector import stdout_redirector
2222
import os
@@ -310,8 +310,9 @@ def _log_message(self, data):
310310
pass
311311

312312
def _getMethod(self, name):
313-
return self._algorithm.get(name)
314-
313+
if (self._algorithm):
314+
return self._algorithm.get(name)
315+
return None
315316
def _init(self, options):
316317
redirector = None
317318
try:

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.5.0-dev10
2+
current_version = 2.6.0-dev1
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
here = os.path.abspath(os.path.dirname(__file__))
88

9-
VERSION = '2.5.0-dev10'
9+
VERSION = '2.6.0-dev1'
1010

1111

1212

0 commit comments

Comments
 (0)