From 34452f9220b85ceee0e477901504c29021eff3f0 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Tue, 26 Sep 2017 16:49:10 +0200 Subject: [PATCH] Changed API description --- fbchat/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbchat/client.py b/fbchat/client.py index 1a7d61f..594c180 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -824,14 +824,14 @@ class Client(object): :type image_id: str :return: An url where you can download the original image :rtype: str - :raises: Exception if request failed + :raises: FBChatException if request failed """ image_id = str(image_id) j = checkRequest(self._get(ReqUrl.ATTACHMENT_PHOTO, query={'photo_id': str(image_id)})) url = get_jsmods_require(j, 3) if url is None: - raise Exception('Could not fetch image url from: {}'.format(j)) + raise FBChatException('Could not fetch image url from: {}'.format(j)) return url """