Improved error handling.
This commit is contained in:
parent
47d2aa5a34
commit
6f017e348c
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ returns
|
|||
auto_wizard_hash['Users'].each { |user_data|
|
||||
|
||||
# lookup organization
|
||||
if user_data['organization']
|
||||
if user_data['organization'] && !user_data['organization'].empty?
|
||||
organization = Organization.find_by(name: user_data['organization'])
|
||||
user_data.delete('organization')
|
||||
if organization
|
||||
|
|
Loading…
Reference in a new issue