Code

Opened 3 years ago

Closed 3 years ago

#16410 closed Bug (fixed)

Stange trackeback, if try to get a not existing cache...

Reported by: jedie Owned by: nobody
Component: Core (Cache system) Version: 1.3
Severity: Normal Keywords: cache
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: no UI/UX: no

Description

e.g.:

cache = get_cache('not_existing_cache')

You will get a strange traceback:

  File "./django/core/cache/__init__.py", line 173, in get_cache
    backend, location, params = parse_backend_conf(backend, **kwargs)
  File "./django/core/cache/__init__.py", line 131, in parse_backend_conf
    mod_path, cls_name = backend.rsplit('.', 1)
ValueError: need more than 1 value to unpack

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [16511]:

Fixed #16410 -- Fixed get_cache to behave gracefully when given a string that can't be split. Thanks, jedie.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.