Skip to content

Commit

Permalink
Fucked up shit pythong
Browse files Browse the repository at this point in the history
  • Loading branch information
GeneralistDev committed Feb 22, 2017
1 parent 7bd1195 commit a4bdb27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions slackcloud.py
Expand Up @@ -34,8 +34,9 @@ def extract_messages(messages):

for i in range(len(messages)):
if messages[i]['type'] == 'message':
if not hasattr(messages[i], 'subtype'):
print messages[i]
try:
subtype = messages[i]['subtype']
except AttributeError:
msgs.append(messages[i]['text'])

if i == 0:
Expand Down

0 comments on commit a4bdb27

Please sign in to comment.