Add missing import PtpUploaderMessageStopJob #28
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Trying to stop a job throws 500:
2022-06-05 18:19:54,717 ERROR django.request Internal Server Error: /job/240/stop
Traceback (most recent call last):
File "..<path>../django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File ""..<path>../django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File ""..<path>../django/contrib/auth/decorators.py", line 21, in _wrapped_view
return view_func(request, *args, **kwargs)
File ""..<path>../PtpUploader/web/views.py", line 344, in stop_job
MyGlobals.PtpUploader.add_message(PtpUploaderMessageStopJob(r_id))
NameError: name 'PtpUploaderMessageStopJob' is not defined
This bug was introduced when the linting changes were committed 5 days ago:
6ad3990