lib/rsr_group/user.rb in rsr_group-2.1.1 vs lib/rsr_group/user.rb in rsr_group-2.1.2
- old
+ new
@@ -12,9 +12,15 @@
ftp.close
end
return true
rescue RsrGroup::NotAuthenticated
false
+ rescue Net::FTPPermError => e
+ if e.message =~ /authentication failed/i
+ return false
+ else
+ raise e
+ end
end
end
end