Project

General

Profile

Bug #10773

AttributeError: 'NoneType' object has no attribute 'url_name')

Added by Frédéric Péters almost 5 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
Start date:
29 Apr 2016
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:

Description

Exception:
  type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'url_name''

Stack trace (most recent call first):
  File "/usr/lib/pymodules/python2.7/extra-wcs-au-quotidien/modules/root.py", line 848, in _q_traverse
   846                     uri_rest = uri_rest[len(base_url):]
   847                 if f.category_id:
>  848                     return redirect('%s%s/%s' % (base_url, f.category.url_name, uri_rest))
   849
   850             raise e

  locals:
     uri_rest = 'test-coffre-fort-1-copie/'
     e = TraversalError()
     f = <FormDef 'test coffre fort 1 (copie)' id:267>
     self = <modules.root.AlternateRootDirectory object at 0x3fc2b10>
     base_url = '/'
     path = ['test-coffre-fort-1-copie', '']
     response = <qommon.http_response.HTTPResponse instance at 0x7fae4ce8ad40>

Files

Associated revisions

Revision d71f475f (diff)
Added by Frédéric Péters almost 5 years ago

misc: protect against removed categories (#10773)

History

#1

Updated by Frédéric Péters almost 5 years ago

#2

Updated by Thomas Noël almost 5 years ago

auquo, ça faisait longtemps.

Ack.

#3

Updated by Frédéric Péters almost 5 years ago

  • Status changed from En cours to Résolu (à déployer)
commit d71f475f7f6d5b8234abc47cfeff2027c7649f11
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Apr 29 12:42:52 2016 +0200

    misc: protect against removed categories (#10773)
#4

Updated by Frédéric Péters almost 5 years ago

  • Target version set to v1.42
#5

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

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF