Permalink
Browse files

_checkProfile needs to return a string, not a list, heh

  • Loading branch information...
1 parent b4455ff commit c68c1b1f67ca3dc2a35d1db2de14f1eaf1abf3e0 @aperson aperson committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 moderator-bot.py
View
2 moderator-bot.py
@@ -638,7 +638,7 @@ def _isVideo(self, submission):
return submission['media']['oembed']['author_name'].replace(
' ', '').lower()
if 'user' in submission['url']:
- return re.findall(r'''user/(.*)[?/]''', submission['url'])
+ return re.findall(r'''user/(.*)[?/]''', submission['url'])[0]
def _checkProfile(self, user):
'''Returns the percentage of things that the user only contributed to themselves.

0 comments on commit c68c1b1

Please sign in to comment.