Permalink
Browse files

Catching correct error code

  • Loading branch information...
1 parent 4c1adab commit 1b431e1bc713d9c7cd519dbde41ec82d591839ef @emperorcezar emperorcezar committed Aug 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wander/tasks.py
View
@@ -68,7 +68,7 @@ def pull(settings, google_settings, user, folder, messageid):
message.save()
except AppsForYourDomainException, e:
- if e['status'] == 503:
+ if e.error_code == 503:
pull.retry()
else:
raise

0 comments on commit 1b431e1

Please sign in to comment.