Skip to content

Commit

Permalink
related to toml migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Jan 14, 2020
1 parent 5201501 commit 51e13aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwnagotchi/plugins/default/bt-tether.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def on_loaded(self):
for device_opt in ['enabled', 'priority', 'scantime', 'search_order',
'max_tries', 'share_internet', 'mac', 'ip',
'netmask', 'interval']:
if device_opt not in options or (device_opt in options and not options[device_opt]):
if device_opt not in options or options[device_opt] is None:
logging.error("BT-TETHER: Please specify the %s for device %s.",
device_opt, device)
break
Expand All @@ -448,7 +448,7 @@ def on_loaded(self):
# legacy
if 'mac' in self.options:
for opt in ['share_internet', 'mac', 'ip', 'netmask', 'interval']:
if opt not in self.options or (opt in self.options and not self.options[opt]):
if opt not in self.options or self.options[opt] is None:
logging.error("BT-TETHER: Please specify the %s in your config.yml.", opt)
return

Expand Down

0 comments on commit 51e13aa

Please sign in to comment.