Project

General

Profile

Actions

Anomalie #3618

closed

Imports: explicit error when CSV is not relevant

Added by Yann Le Jeune over 7 years ago. Updated over 7 years ago.

Status:
Résolu
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
09 June 2017
Due date:
% Done:

0%

Estimated time:
Élément(s):
Difficulté:

Description

On find import (Ishtar import) when no context record is recorded:


Cannot assign None: "BaseFind.context_record" does not allow null values.

Request Method:     POST
Request URL:    http://etiolles.ishtar-archeo.net/import-list/
Django Version:     1.4.22
Exception Type:     ValueError
Exception Value:    

Cannot assign None: "BaseFind.context_record" does not allow null values.

(...)
File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in get_field
  1346.                                     **v)
(...)

Exception Type: ValueError at /import-list/
Exception Value: Cannot assign None: "BaseFind.context_record" does not allow null values.
Actions #1

Updated by Étienne Loks over 7 years ago

  • Description updated (diff)

Context please? I assume no context record was provided.

A warning instead of a crash is expected?

Actions #2

Updated by Yann Le Jeune over 7 years ago

  • Status changed from Nouveau to En cours

Sorry, no Context Record was recorded.

Maybe the UI should provide some message for common users ?

Actions #3

Updated by Étienne Loks over 7 years ago

  • Description updated (diff)
  • Subject changed from Crash during FINDs Import to Imports: explicit error when CSV is not relevant
Actions #4

Updated by Étienne Loks over 7 years ago

  • Status changed from En cours to Résolu
Actions

Also available in: Atom PDF