Skip to content

Commit

Permalink
Fix settings validation for custom profiles
Browse files Browse the repository at this point in the history
Custom profiles do not have an `app_package` value, so validation should take that into account
  • Loading branch information
fran-f committed Jun 8, 2021
1 parent 251cf89 commit 3b7246d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/terminal_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def terminal_instances(self):
prefix = self._get(section_name, "prefix", "Windows Terminal (%s)" % (instance_name))
app_package = self._get(section_name, "app_package")

if not self._package_exists(app_package):
if app_package and not self._package_exists(app_package):
self._logger.info(
"Skipping '%s', package %s does not exist" % (instance_name, app_package)
)
Expand Down

0 comments on commit 3b7246d

Please sign in to comment.