TIM-JYU / TIM

TIM (The Interactive Material) is an open-source cloud-based platform for creating interactive learning documents.
https://tim.education/view/about/en-US
MIT License
14 stars 4 forks source link

Preview-reitissä usein poikkeus #1038

Open dezhidki opened 6 years ago

dezhidki commented 6 years ago

In GitLab by @Smibu on Jan 11, 2018, 07:07

Esim:

Traceback (most recent call last):
  File "/service/timApp/document/document.py", line 488, in get_paragraph
    idx = self.par_ids.index(par_id)
ValueError: 'mE1loQSG566N' is not in list

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.8/dist-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/service/timApp/document/editing/routes.py", line 345, in preview_paragraphs
    edit_request = EditRequest.from_request(doc, preview=True)
  File "/service/timApp/document/editing/editrequest.py", line 90, in from_request
    return EditRequest(
  File "<string>", line 13, in __init__
  File "/service/timApp/document/editing/editrequest.py", line 34, in __post_init__
    self.original_par = self.doc.get_paragraph(self.par) if not self.editing_area and self.par is not None and not self.is_adding else None
  File "/service/timApp/document/document.py", line 490, in get_paragraph
    return self._raise_not_found(par_id)
  File "/service/timApp/document/document.py", line 461, in _raise_not_found
    raise TimDbException(self.get_par_not_found_msg(par_id))
timApp.timdb.exceptions.TimDbException: Document xxx: Paragraph not found: mE1loQSG566N
dezhidki commented 3 years ago

In GitLab by @Smibu on Apr 19, 2021, 13:08

Tämä kuulemma tulee eräällä käyttäjällä alueiden kanssa.