Changes between Initial Version and Version 1 of Ticket #30516


Ignore:
Timestamp:
May 27, 2019, 8:22:42 PM (5 years ago)
Author:
Alan Trick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30516 – Description

    initial v1  
    1919}}}
    2020
    21 The problem is that `django.utils.autoreload.raise_last_exception` tries to construct a new exception of the same type, with 1 argument (the original exception). Note that this behavior was changed in c8720e7696ca41f3262d5369365cc1bd72a216ca, it used to just re-raise the exception value. I don't know why it was changed.
     21The problem is that `django.utils.autoreload.raise_last_exception` tries to construct a new exception of the same type, with 1 argument (the original exception). The consequence is that you just get a TypeError exception about ` __init__() missing 1 required positional argument: 'other_thing'` and it completely masks the original exception.
     22
     23Note that this behavior was changed in c8720e7696ca41f3262d5369365cc1bd72a216ca, it used to just re-raise the exception value. I don't know why it was changed.
    2224
    2325I noticed this issue as a result of https://gitlab.com/alantrick/django-vox/issues/9
Back to Top