Improved error handling.

This commit is contained in:
Martin Edenhofer 2015-05-23 01:57:27 +02:00
parent 47d2aa5a34
commit 6f017e348c

View file

@ -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