Browse files

Merge pull request #3 from goranstef/patch-1

Fix exception that breaks with Python 2.5
  • Loading branch information...
2 parents 6020a1c + 40c1bcd commit 308660e5c75d7667d83e71133600b2631fc22d73 @rossdakin committed Sep 8, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_cloudfiles/management/commands/publish_cloudfiles.py
View
4 django_cloudfiles/management/commands/publish_cloudfiles.py
@@ -104,6 +104,6 @@ def handle(self, *args, **options):
except socket.timeout, e:
print ""
raise CommandError("Socket timeout: " + str(e))
- except socket.error, (errno, e):
+ except socket.error, e:
print ""
- raise CommandError("Socket error " + str(errno) + ": " + str(e))
+ raise CommandError("Socket error " + str(e))

0 comments on commit 308660e

Please sign in to comment.