bamthomas / aioimaplib

Python asyncio IMAP4rev1 client library
GNU General Public License v3.0
135 stars 58 forks source link

Common base class for exceptions #25

Closed amelchio closed 7 years ago

amelchio commented 7 years ago

Would it be possible to rearrange the exceptions so they all share a base class? This could make it simpler to catch all aioimaplib related exceptions.

I am trying to do this with an IDLE loop, in order to reconnect if the connection is lost.

bamthomas commented 7 years ago

Yes, sure. I'll do this soon.

pblayo commented 7 years ago

I've pushed a first proposal so that we've a base for discussion: https://github.com/bamthomas/aioimaplib/pull/26/commits/5e9cadc0d3609d6df54eab3c1863ecb713b8105f

bamthomas commented 7 years ago

done by @blayo

amelchio commented 7 years ago

Thank you!