diff --git a/fbchat/__init__.py b/fbchat/__init__.py index d312ec0..2607a3f 100644 --- a/fbchat/__init__.py +++ b/fbchat/__init__.py @@ -17,7 +17,7 @@ from .client import * __copyright__ = 'Copyright 2015 - {} by Taehoon Kim'.format(datetime.now().year) -__version__ = '1.0.7' +__version__ = '1.0.8' __license__ = 'BSD' __author__ = 'Taehoon Kim; Moreels Pieter-Jan; Mads Marquart' __email__ = 'carpedm20@gmail.com' diff --git a/fbchat/graphql.py b/fbchat/graphql.py index e561170..680b07f 100644 --- a/fbchat/graphql.py +++ b/fbchat/graphql.py @@ -30,7 +30,7 @@ def graphql_color_to_enum(color): return ThreadColor.MESSENGER_BLUE try: return ThreadColor('#{}'.format(color[2:].lower())) - except KeyError, ValueError: + except ValueError: raise Exception('Could not get ThreadColor from color: {}'.format(color)) def get_customization_info(thread):