Feature #8334
closed
Clear log message in case of uploading marks
Added by Pavel Andrianov over 6 years ago.
Updated over 6 years ago.
Description
I tried to upload marks using Marks->upload. Something has gone wrong and there was an exception "ValueError: Unsupported mark data type: <class 'NoneType'>". After some time Eugeny and I could realize, that Bridge expects single mark, and the archive of them should be uploaded with Manager Tools. The web description "Unknown error" may stay the same (as it is not so easy to change), but the internal log description should be more clear.
Files
- Priority changed from Normal to High
A corresponding fix is trivial but a corresponding value may be high.
- Due date set to 08/11/2017
- Status changed from New to Resolved
- % Done changed from 0 to 100
Let's fix one more related issue in addition:
invalid literal for int() with base 10: '2.json'
Traceback (most recent call last):
File "/home/novikov/work/klever/bridge/marks/views.py", line 401, in upload_marks
res = UploadMark(request.user, f)
File "/home/novikov/work/klever/bridge/marks/Download.py", line 125, in __init__
self.mark = self.__upload_mark(archive)
File "/home/novikov/work/klever/bridge/marks/Download.py", line 144, in __upload_mark
version_id = int(file_name.replace('version-', ''))
ValueError: invalid literal for int() with base 10: '2.json'
- Status changed from Open to Resolved
- Status changed from Resolved to Closed
I merged the branch to master in c10b25c3.
Also available in: Atom
PDF