Exception during startup

Bug #896576 reported by JJL
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
arte +7 recorder
New
Undecided
Unassigned

Bug Description

Hello,

using trunk version of arte+7recorder branch, on debian wheezy I get an unhandled exception :
--8<-------------------
Traceback (most recent call last):
  File "arte7recorder.py", line 493, in <module>
    app = GUI()
  File "arte7recorder.py", line 174, in __init__
    self.dl_resume(None, None, None)
  File "arte7recorder.py", line 428, in dl_resume
    data_time = self.dureeRE.search(page).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
--8<-------------------

without looking for root cause, I've corrected the problem by modifying lignes 428+ of arte7recorder.py :
--8<-------------------
      try:
         data_time = self.dureeRE.search(page).group(1)
      except:
         data_time = ""
--8<-------------------
with this ugly correction everything seems to work well.

Revision history for this message
Florian (crashtestdummie) wrote :

I have the same problem on Ubuntu 11.10 and tried your workaround, but after editing the lines it shows me the error:

----------------------------------------------------------

  File "arte7recorder.py", line 422
    try:
       ^
IndentationError: unindent does not match any outer indentation level
----------------------------------------------------------

How does your code looks before and behind the posted lines?

Revision history for this message
Alexandre Campo (alexandre-campo) wrote :

The workaround solves the problem for me, thank you !

It was already mentioned in these pages :
http://forum.ubuntu-fr.org/viewtopic.php?id=395921&p=9
Maybe this is a regression ?

Florian : python uses indentation to interpret code. Most likely you did not put the "try" right below the previous
line (and with first character vertically aligned as well). Also respect indentation given by JJL.

Revision history for this message
Florian (crashtestdummie) wrote :

I just waited till this morning and somehow it worked again!
That's how IT works :)

@Poulpy
Thanks for the explanation!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.