I have this code:
with gui.Download:
if gui.is_running:  
    try: 
        dialog = str( QFileDialog.getExistingDirectory() )
    else:
        subprocess.call(['/bin/youtube-dl', gui.url])
and whenever I run it I get an error on the else block in the try, else statement. Any ideas?
Error:
      File "init.py", line 15
    else:
    ^
SyntaxError: invalid syntax
 
    