Skip to content

Commit

Permalink
Updated variable name to match config name
Browse files Browse the repository at this point in the history
Refactored logic
  • Loading branch information
MarkCalvert committed Jan 31, 2024
1 parent e6ff60a commit 236a7e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ckanext/qa/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def update_config(self, config):
toolkit.add_template_directory(config, '../templates')

# check for qsv config
qsv_config = config.get('ckanext.qa.qsv_bin')
if not qsv_config:
log.error('ckanext.qa.qsv_bin not set')
if qsv_config:
qsv_path = Path(qsv_config)
qsv_bin = config.get('ckanext.qa.qsv_bin')
if qsv_bin:
qsv_path = Path(qsv_bin)
if not qsv_path.is_file():
log.error('ckanext.qa.qsv_bin file not found: %s', qsv_path)
else:
log.error('ckanext.qa.qsv_bin not set')

# IPipe

Expand Down

0 comments on commit 236a7e0

Please sign in to comment.