trivial: update management command exception syntax for python 3 (#41651)

This commit is contained in:
Frédéric Péters 2020-04-13 21:13:08 +02:00
parent 1ed52fd7a1
commit 331b557a0b
1 changed files with 1 additions and 1 deletions

View File

@ -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)