diff --git a/.gossamer_forums.rb.swo b/.gossamer_forums.rb.swo index 29d15f2..382f114 100644 Binary files a/.gossamer_forums.rb.swo and b/.gossamer_forums.rb.swo differ diff --git a/gossamer_forums.rb b/gossamer_forums.rb index 6367a45..a4efdef 100644 --- a/gossamer_forums.rb +++ b/gossamer_forums.rb @@ -1948,7 +1948,7 @@ class GossamerForumsImporter < ImportScripts::Base user = User.find(user_id) current_trust_level = user.trust_level - if user.id = 2 + if user.id == 2 puts "USER ID 2, so TRUST LEVEL 4" new_trust_level = 4 end @@ -1961,7 +1961,8 @@ class GossamerForumsImporter < ImportScripts::Base puts "update_user_stats user_id #{user_id} trust_level remains at #{current_trust_level}" end rescue - puts "WARNING: Could not find or modify User with id=#{user_id}. Skipping..." + puts "WARNING: Could not find or modify User with id=#{user_id}: #{e.message} ... Skipping..." + puts e.backtrace.join("\n") # Print the full stack trace end end end