From 2f5ea47944eb98b7727fb651e2ec1d9fe235664f Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 4 Jan 2011 14:48:16 -0500 Subject: [PATCH] Make describe_account work (for DovecotMailstore) even after an account is removed. --- src/plugins/dovecot_mailstore.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/dovecot_mailstore.rb b/src/plugins/dovecot_mailstore.rb index 7706570..d253c32 100644 --- a/src/plugins/dovecot_mailstore.rb +++ b/src/plugins/dovecot_mailstore.rb @@ -16,7 +16,12 @@ class DovecotMailstore < Mailstore end def describe_account(account) - return get_account_path(account) + begin + account_path = get_account_path(account) + return account_path + rescue NonexistentAccountError => e + return e.message + end end def delete_domain(domain) -- 2.43.2