aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-session.c')
-rw-r--r--camel/camel-session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-session.c b/camel/camel-session.c
index 6fed6bfb9f..cb402a3526 100644
--- a/camel/camel-session.c
+++ b/camel/camel-session.c
@@ -308,8 +308,7 @@ camel_session_get_service (CamelSession *session, const char *url_string,
path = g_hash_table_lookup (session->modules, url->protocol);
if (path) {
camel_provider_load (session, path, ex);
- if (camel_exception_get_id (ex) !=
- CAMEL_EXCEPTION_NONE) {
+ if (camel_exception_is_set (ex)) {
camel_url_free (url);
CAMEL_SESSION_UNLOCK(session, lock);
return NULL;