Opened 10 years ago

Closed 10 years ago

#6913 closed defect (fixed)

Jamu.py Error

Reported by: kincke@… Owned by: robertm
Priority: minor Milestone: 0.22
Component: Bindings - Python Version:
Severity: low Keywords: jamu, jamu.py
Cc: Ticket locked: no

Description

When running jamu.py, received this error

Traceback (most recent call last):

File "jamu.py", line 5286, in <module>

main()

File "jamu.py", line 5271, in main

process.processMythTvMetaData()

File "jamu.py", line 4558, in processMythTvMetaData

tmp_dict = self._getTvdbMetadata(cfile, copy)

File "jamu.py", line 3502, in _getTvdbMetadata

meta_dictlength? = long(data)

ValueError?: invalid literal for long() with base 10: 'None'

Attachments (2)

jamupatch.diff (591 bytes) - added by robertm 10 years ago.
Possible fix
jamu_data_filter.patch (3.9 KB) - added by r.d.vaughan@… 10 years ago.
Protects jamu from aborting due to data issues with TMDB or TVDB

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by robertm

Attachment: jamupatch.diff added

Possible fix

comment:1 Changed 10 years ago by robertm

Owner: changed from Anduin Withers to robertm
Status: newassigned

Can you please try this patch and report back. Thanks.

comment:2 Changed 10 years ago by Marc Tousignant <drayson@…>

I was going to report this as well, tested patch and it fixed the same error on my machine.

Changed 10 years ago by r.d.vaughan@…

Attachment: jamu_data_filter.patch added

Protects jamu from aborting due to data issues with TMDB or TVDB

comment:3 Changed 10 years ago by r.d.vaughan@…

This patch bumps Jamu version to 0.4.2 and fixes a bug where bad data from either TMDB or TVDB would abort script. This patch includes the "jamupatch.diff" changes plus expands that fix to other data fields that may have the same issue.

comment:4 Changed 10 years ago by kincke@…

Robertm, the diff file worked great.

comment:5 Changed 10 years ago by robertm

Resolution: fixed
Status: assignedclosed

(In [21527]) Closes #6913. Patch from Doug Vaughan to validate data coming from TMDB/TVDB in Jamu before attempting to use it. Prevents potential script crashes if the data is unset/none.

Note: See TracTickets for help on using tickets.