casting exception for decimal issues

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
ebbnflow
Posts: 5
Joined: Mon Aug 27, 2018 12:48 am

casting exception for decimal issues

Post by ebbnflow » Wed Sep 05, 2018 3:29 am

I ran across an exception, not sure if its a non-issue and handled already but wanted to post and let you know.

Code: Select all

2018-09-04 22:20:06	ERROR	Uncaught exception: Traceback (most recent call last):
File "/volume1/@appstore/mylar/share/mylar/mylar/logger.py", line 336, in new_run
old_run(*args, **kwargs)
File "/var/packages/python/target/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/volume1/@appstore/mylar/share/mylar/mylar/helpers.py", line 3007, in search_queue
ss_queue = mylar.search.searchforissue(item['issueid'])
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 2118, in searchforissue
foundNZB, prov = search_init(ComicName, IssueNumber, str(IssueYear), SeriesYear, Publisher, IssueDate, StoreDate, actissueid, AlternateSearch, UseFuzzy, ComicVersion, SARC=SARC, IssueArcID=IssueArcID, mode=mode, rsscheck=rsscheck, ComicID=ComicID, filesafe=Comicname_filesafe, allow_packs=allow_packs, oneoff=oneoff, manual=manual, torrentid_32p=TorrentID_32p)
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 336, in search_init
findit = NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDate, StoreDate, searchprov, send_prov_count, IssDateFix, IssueID, UseFuzzy, newznab_host, ComicVersion=ComicVersion, SARC=SARC, IssueArcID=IssueArcID, RSS="no", ComicID=ComicID, issuetitle=issuetitle, unaltered_ComicName=unaltered_ComicName, allow_packs=allow_packs, oneoff=oneoff, cmloopit=cmloopit, manual=manual, torznab_host=torznab_host, torrentid_32p=torrentid_32p)
File "/volume1/@appstore/mylar/share/mylar/mylar/search.py", line 618, in NZB_SEARCH
ww = wwt.wwt(cmname, mod_isssearch)
File "/volume1/@appstore/mylar/share/mylar/mylar/wwt.py", line 34, in __init__
self.query = name + ' ' + str(int(issue)) #'Batman White Knight'
ValueError: invalid literal for int() with base 10: '023.4'

User avatar
evilhero
Site Admin
Posts: 2263
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: casting exception for decimal issues

Post by evilhero » Thu Sep 06, 2018 4:14 pm

Yep, cause it's trying to get an un-padded numeric to search against - I recall this occurred, but I guess I never fixed it. I'll see if I can get this out into development soon-ish...

Post Reply