Permalink
Browse files

Temporary PRAW-side fix for captcha error on successful submission.

  • Loading branch information...
1 parent 281f4e8 commit d0bde82efb337635d7802b258652004acbb49d22 @bboe bboe committed Jun 16, 2012
Showing with 4 additions and 1 deletion.
  1. +1 −1 reddit/__init__.py
  2. +3 −0 reddit/decorators.py
View
2 reddit/__init__.py
@@ -30,7 +30,7 @@
import reddit.objects
from reddit.settings import CONFIG
-__version__ = '1.3.9'
+__version__ = '1.3.10'
UA_STRING = '%%s PRAW/%s Python/%s %s' % (__version__,
sys.version.split()[0],
platform.platform(True))
View
3 reddit/decorators.py
@@ -168,6 +168,9 @@ def error_checked_function(self, *args, **kwargs):
warnings.warn_explicit('Unknown return key: %s' % key,
UserWarning, '', 0)
if 'errors' in return_value and return_value['errors']:
+ # Hack for now with sucessful submission and captcha error
+ if 'data' in return_value and 'url' in return_value['data']:
+ return return_value
error_list = []
for error_type, msg, value in return_value['errors']:
if error_type in errors.ERROR_MAPPING:

0 comments on commit d0bde82

Please sign in to comment.