Skip to content

Commit

Permalink
Make dropdown work when some custom commands are invalid
Browse files Browse the repository at this point in the history
Copied from  #1781, resolves #1779
  • Loading branch information
Davidy22 authored and gsemet committed Oct 5, 2021
1 parent 2ec63cc commit ce85aa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guake/customcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def build_menu(self):
cust_comms = self._load_json(self.get_file_path())
if not cust_comms:
return None
try:
for obj in cust_comms:
for obj in cust_comms:
try:
self._parse_custom_commands(obj, menu)
except AttributeError:
return None
except AttributeError:
log.error("Error parsing %s", obj)
return menu

def _parse_custom_commands(self, json_object, menu):
Expand Down

0 comments on commit ce85aa6

Please sign in to comment.