trivial: update management command exception syntax for python 3 (#41651)
This commit is contained in:
parent
1ed52fd7a1
commit
331b557a0b
|
@ -28,6 +28,6 @@ class Command(BaseCommand):
|
|||
for category in Category.objects.filter(rss_feed_url__isnull=False):
|
||||
try:
|
||||
category.save()
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
logger.warning('Error occured while synchronizing feeds from %s: %s',
|
||||
category, e)
|
||||
|
|
Reference in New Issue