Ticket #99 (closed defect: fixed)

Opened 11 months ago

Last modified 6 months ago

rip offset find fails with "UnboundLocalError: local variable 'archecksum' referenced before assignment"

Reported by: https://www.google.com/accounts/o8/id?id=aitoawkvaim9_bcxcskv1w5cmojmh_gt9czrrpo Owned by: https://thomasvs.myopenid.com/
Priority: major Milestone: 0.1.3
Component: morituri Version: master
Keywords: Cc:

Description

With current svn version of morituri (r583, 2012-06-24), rip offset find fails with this error:

$ rip offset find
Checking device /dev/cdrom
Trying read offset 6 ...
Traceback (most recent call last):

File "/usr/local/bin/rip", line 35, in <module>

sys.exit(main.main(sys.argv[1:]))

File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 16, in main

ret = c.parse(argv)

File "/usr/local/lib/python2.7/site-packages/morituri/rip/main.py", line 89, in parse

logcommand.LogCommand?.parse(self, argv)

File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 349, in parse

return self.subCommands[command].parse(args[1:])

File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 349, in parse

return self.subCommands[command].parse(args[1:])

File "/usr/local/lib/python2.7/site-packages/morituri/extern/command/command.py", line 318, in parse

ret = self.do(args)

File "/usr/local/lib/python2.7/site-packages/morituri/rip/offset.py", line 156, in do

self.debug('AR checksum calculated: %s' % archecksum)

UnboundLocalError?: local variable 'archecksum' referenced before assignment

Change History

comment:1 Changed 6 months ago by thomas

  • Status changed from new to closed
  • Resolution set to fixed

In [632]:

  • morituri/rip/offset.py: Don't let an exception on testing an offset slip pass. Fixes #99.

comment:2 Changed 6 months ago by https://thomasvs.myopenid.com/

Sorry about not getting back on this one sooner. I added revision [632] to work around this. I'd appreciate it if you could try it again, and put the output here (both from a normal run, as well as with RIP_DEBUG=5)

Thanks

Note: See TracTickets for help on using tickets.