Skip to content

Commit

Permalink
unbelievable...a pdb...bah
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomos committed Mar 5, 2016
1 parent ba86793 commit a2c1e4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/i3menu/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,7 @@ def display_menu(menu_provider, menu, prompt=None, filter_fnc=None):
logger.info('Display menu: ' + repr(cmd))
proc = subprocess.Popen([cmd], shell=True, stdout=subprocess.PIPE)
res = safe_decode(proc.stdout.read()).strip('\n')
try:
res = res.strip(SUBMENU_SIGN).strip(MENUENTRY_SIGN).split(': ', 1)[-1]
except:
import pdb; pdb.set_trace()
res = res.strip(SUBMENU_SIGN).strip(MENUENTRY_SIGN).split(': ', 1)[-1]
if len(entries) == 0:
return res
for e in entries:
Expand Down

0 comments on commit a2c1e4a

Please sign in to comment.