This commit is contained in:
Mads Marquart
2017-06-03 12:11:18 +02:00
parent 2d90eee939
commit 1f4b0fa150
2 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ from .client import *
__copyright__ = 'Copyright 2015 by Taehoon Kim' __copyright__ = 'Copyright 2015 by Taehoon Kim'
__version__ = '0.9.1' __version__ = '0.9.2'
__license__ = 'BSD' __license__ = 'BSD'
__author__ = 'Taehoon Kim; Moreels Pieter-Jan' __author__ = 'Taehoon Kim; Moreels Pieter-Jan'
__email__ = 'carpedm20@gmail.com' __email__ = 'carpedm20@gmail.com'

View File

@@ -892,11 +892,11 @@ class Client(object):
def fbidStrip(_fbid): def fbidStrip(_fbid):
# Stripping of `fbid:` from author_id # Stripping of `fbid:` from author_id
if type(_fbid) == int: try:
return _fbid return int(_fbid)
except:
if type(_fbid) in [str, unicode] and 'fbid:' in _fbid: if type(_fbid) in [str, unicode] and 'fbid:' in _fbid:
return int(_fbid[5:]) return int(_fbid[5:])
user_ids = [fbidStrip(uid) for uid in user_ids] user_ids = [fbidStrip(uid) for uid in user_ids]