Skip to content

Commit

Permalink
Remove unnecessary try except clause
Browse files Browse the repository at this point in the history
  • Loading branch information
felipediel committed Mar 14, 2021
1 parent 2894248 commit 5c7837a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cli/broadlink_cli
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ if args.humidity:
if args.energy:
print(dev.get_energy())
if args.sensors:
try:
data = dev.check_sensors()
except:
data = {}
data['temperature'] = dev.check_temperature()
data = dev.check_sensors()
for key in data:
print("{} {}".format(key, data[key]))
if args.send:
Expand Down

0 comments on commit 5c7837a

Please # to comment.