Commit 99652d6c authored by Philip ABBET's avatar Philip ABBET
Browse files

Fix the loading of invalid binary algorithms

An invalid binary algorithm being one for which no shared library has been uploaded yet
parent c695fc93
Pipeline #5598 failed with stage
in 60 minutes and 2 seconds
......@@ -337,9 +337,10 @@ class Algorithm(object):
if self.storage is not None: #loading from the disk, check code
if not self.storage.code.exists():
self.errors.append('Algorithm code not found: %s' % \
self.storage.code.path)
return
if self.data['language'] != 'cxx':
self.errors.append('Algorithm code not found: %s' % \
self.storage.code.path)
return
else:
code = self.storage.code.load()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment