Project

General

Profile

Bug #20810

ne pas crasher si un flux RSS utilisé pour créer les annonces d'une categorie ne contient pas de date de publication

Added by Serghei Mihai almost 7 years ago. Updated over 2 years ago.

Status:
Rejeté
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
19 December 2017
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:

Description

.

History

#1

Updated by Thomas Noël almost 7 years ago

(tu as un bout de trace ?)

#2

Updated by Serghei Mihai almost 7 years ago

Arrivée hier lors d'un test sur l'instance de Villeurbanne:

Internal Server Error: /manage/category/edit/musees
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 272, in post
    return super(BaseUpdateView, self).post(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 215, in post
    return self.form_valid(form)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 193, in form_valid
    self.object = form.save()
  File "/usr/lib/python2.7/dist-packages/corbo/forms.py", line 61, in save
    return super(CategoryForm, self).save(commit=commit)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 459, in save
    construct=False)
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 105, in save_instance
    instance.save()
  File "/usr/lib/python2.7/dist-packages/corbo/models.py", line 49, in save
    published = datetime.fromtimestamp(mktime(entry.published_parsed))
  File "/usr/lib/python2.7/dist-packages/feedparser.py", line 424, in __getattr__
    raise AttributeError, "object has no attribute '%s'" % key
AttributeError: object has no attribute 'published_parsed'
#3

Updated by Frédéric Péters over 2 years ago

  • Status changed from Nouveau to Rejeté

Also available in: Atom PDF