X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=lib%2Frm%2Fplugins%2Fdavical.rb;fp=lib%2Frm%2Fplugins%2Fdavical.rb;h=04d5fbf024dde17e47375afa486d4359c897c9dd;hp=02e889466849fb7c67aad15e0812afce1e23e33e;hb=bd2dabf89ab277fbe315b05e6dfa839afb5ce5ef;hpb=483d14dc8228a81d12fb109d3ed6510e2d2b03c1 diff --git a/lib/rm/plugins/davical.rb b/lib/rm/plugins/davical.rb index 02e8894..04d5fbf 100644 --- a/lib/rm/plugins/davical.rb +++ b/lib/rm/plugins/davical.rb @@ -16,6 +16,8 @@ class DavicalRm # Delete the given username. DAViCal uses foreign keys properly # and only supports postgres, so we let the ON DELETE CASCADE # trigger handle most of the work. + raise NonexistentAccountError.new(account) if not user_exists(account) + sql_queries = ['DELETE FROM usr WHERE username = $1'] begin