fix management command call to sync

This commit is contained in:
Jeremy Carbaugh
2010-05-07 10:58:02 -04:00
parent 4aae8b91ad
commit a0b6c2c658
+2 -2
View File
@@ -8,9 +8,9 @@ class Command(BaseCommand):
requires_model_validation = False
def handle(self, bucket=None, prefix='', *args, **options):
def handle(self, *args, **options):
try:
mediasync.sync(bucket, prefix.strip('/'))
mediasync.sync()
except ValueError, ve:
raise CommandError('%s\nUsage is mediasync %s' % (ve.message, self.args))