Skip to content

Commit

Permalink
Raise NotSupportedException for trying to override algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Jul 5, 2019
1 parent f4fc1d0 commit 954a1e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions annif/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def validate_backend_params(backend, beparam, project):
raise NotSupportedException(
'Backend paramater overriding not supported for {} model.'
.format(project.config['backend']))
if 'algorithm' in beparam:
raise NotSupportedException('Algorithm overriding not supported.')
if backend != project.config['backend']:
raise AnnifException(
'The backend {} in CLI option "-b {}" not matching the project'
Expand Down

0 comments on commit 954a1e7

Please sign in to comment.