Révision 331b557a
Ajouté par Frédéric Péters il y a environ 4 ans
corbo/management/commands/sync_external_feeds.py | ||
---|---|---|
28 | 28 |
for category in Category.objects.filter(rss_feed_url__isnull=False): |
29 | 29 |
try: |
30 | 30 |
category.save() |
31 |
except Exception, e:
|
|
31 |
except Exception as e:
|
|
32 | 32 |
logger.warning('Error occured while synchronizing feeds from %s: %s', |
33 | 33 |
category, e) |
Formats disponibles : Unified diff
trivial: update management command exception syntax for python 3 (#41651)