Don't fail when wdir.get_current_folder() returns None. #23

Merged
merged 1 commit into from Nov 19, 2013

Projects

None yet

2 participants

@jnweiger

My patch fixes that, but it is possibly more a workaround than a true fix.

Video DVD,
-> add a single mp4 file,
-> OK
-> Forward
-> choose $HOME/Downloads Folder instead of (None)
-> OK

Threads: 1
Creating window /usr/share/devede/wprogress.ui
Creating window /usr/share/devede/wfolder_dialog.ui
Entro en RUN
Salgo de RUN
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/devede_main.py", line 475, in on_main_go_clicked
if conversor.create_disc():
File "/usr/lib/python2.7/site-packages/devede_convert.py", line 365, in create_disc
filefolder2=os.path.join(filefolder,self.filename)
File "/usr/lib/python2.7/posixpath.py", line 68, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

@jnweiger jnweiger This procedure fails with the output below.
My patch fixes that, but it is possibly more a workaround than a true fix.

Video DVD,
-> add a single mp4 file,
  -> OK
-> Forward
-> choose $HOME/Downloads Folder instead of (None)
  -> OK

Threads: 1
Creating window /usr/share/devede/wprogress.ui
Creating window /usr/share/devede/wfolder_dialog.ui
Entro en RUN
Salgo de RUN
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/devede_main.py", line 475, in on_main_go_clicked
    if conversor.create_disc():
  File "/usr/lib/python2.7/site-packages/devede_convert.py", line 365, in create_disc
    filefolder2=os.path.join(filefolder,self.filename)
  File "/usr/lib/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
84c04a5
@rastersoft rastersoft merged commit 58c9ac8 into rastersoft:master Nov 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment