Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#8243 closed defect (fixed)

jamu.py crashed with TypeError in _can_int()

Reported by: Marc Randolph <mrand+mythtv@…> Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - General Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Forwarding upstream. System: mythvideo 0.23.0+fixes23789

Traceback (most recent call last):
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6394, in <module>
    main()
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 6379, in main
    process.processMythTvMetaData()
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 5665, in processMythTvMetaData
    if _can_int(meta_dict['inetref']) and not meta_dict['inetref'] == u'00000000' and not meta_dict['inetref'] == '':
  File "/usr/share/mythtv/mythvideo/scripts/jamu.py", line 804, in _can_int
    int(x)
TypeError: int() argument must be a string or a number, not 'NoneType'

I assume the above is enough, but if system logs are needed, they are available: https://bugs.launchpad.net/mythbuntu/+bug/549352

Change History (4)

comment:1 Changed 14 years ago by r.d.vaughan@…

Although this error will be handled in the jamu code it is likely that this videometadata record has been changed outside of MythVideo?. Both MythVideo? and Jamu initialize the inetref field to a value of "00000000". It is never left as Null or None, which is the situation triggering this abort.

comment:2 Changed 14 years ago by robertm

(In [23846]) Refs #8243. Fixed a bug where an inetref field was not properly initialized and caused an abort. Patch by Doug Vaughan.

comment:3 Changed 14 years ago by robertm

Resolution: fixed
Status: newclosed

(In [23847]) Fixes #8243. Fixed a bug where an inetref field was not properly initialized and caused an abort. Backport. Patch from Doug Vaughan.

comment:4 Changed 14 years ago by xris

(In [23864]) re #8243 set default value on inetref when scanning files via mythweb.

Note: See TracTickets for help on using tickets.