Skip to content

Commit ce85aa6

Browse files
Davidy22gsemet
authored andcommitted
Make dropdown work when some custom commands are invalid
Copied from #1781, resolves #1779
1 parent 2ec63cc commit ce85aa6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guake/customcommands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ def build_menu(self):
6565
cust_comms = self._load_json(self.get_file_path())
6666
if not cust_comms:
6767
return None
68-
try:
69-
for obj in cust_comms:
68+
for obj in cust_comms:
69+
try:
7070
self._parse_custom_commands(obj, menu)
71-
except AttributeError:
72-
return None
71+
except AttributeError:
72+
log.error("Error parsing %s", obj)
7373
return menu
7474

7575
def _parse_custom_commands(self, json_object, menu):

0 commit comments

Comments
 (0)