From: Michael Orlitzky Date: Tue, 4 Jan 2011 19:48:16 +0000 (-0500) Subject: Make describe_account work (for DovecotMailstore) even after an account is removed. X-Git-Tag: 0.0.1~126 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=2f5ea47944eb98b7727fb651e2ec1d9fe235664f;p=mailshears.git Make describe_account work (for DovecotMailstore) even after an account is removed. --- 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)