mirror of
https://github.com/evilhero/mylar
synced 2025-02-01 12:07:50 +00:00
Fixed sandwich variable not being assigned
Added try-except for post-processing failed comics when sandwich was not defined by current parameters. UnboundLocalError: local variable 'sandwich' referenced before assignment
This commit is contained in:
parent
22bf11ef13
commit
4ae28f6dbf
1 changed files with 13 additions and 7 deletions
|
@ -170,6 +170,7 @@ class FailedProcessor(object):
|
|||
sandwich = issueid
|
||||
elif 'G' in issueid or '-' in issueid:
|
||||
sandwich = 1
|
||||
try:
|
||||
if helpers.is_number(sandwich):
|
||||
if sandwich < 900000:
|
||||
# if sandwich is less than 900000 it's a normal watchlist download. Bypass.
|
||||
|
@ -177,6 +178,11 @@ class FailedProcessor(object):
|
|||
else:
|
||||
logger.info('Failed download handling for story-arcs and one-off\'s are not supported yet. Be patient!')
|
||||
self._log(' Unable to locate downloaded file to rename. PostProcessing aborted.')
|
||||
self.valreturn.append({"self.log": self.log,
|
||||
"mode": 'stop'})
|
||||
return self.queue.put(self.valreturn)
|
||||
except NameError:
|
||||
logger.info('sandwich was not defined. Post-processing aborted...')
|
||||
self.valreturn.append({"self.log": self.log,
|
||||
"mode": 'stop'})
|
||||
|
||||
|
|
Loading…
Reference in a new issue