Skip to content

Commit

Permalink
SPC-131 Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansberry committed Jul 31, 2023
1 parent 740025c commit c932050
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckanext/spectrum/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ def package_create(next_action, context, data_dict):
@toolkit.chained_action
def user_list(next_action, context, data_dict):
try:
user_from_id = toolkit.get_action('user_show')(context, {'id': data_dict['q']})
user_from_id = toolkit.get_action('user_show')(
context,
{'id': data_dict.get('q', '')}
)
data_dict['q'] = user_from_id.get('name')
except toolkit.ObjectNotFound:
pass
Expand Down

0 comments on commit c932050

Please sign in to comment.