Skip to content

Commit

Permalink
trying to fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed May 18, 2020
1 parent d129d22 commit 97fd52b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions things3/things3_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ def config_get(self, key):

def config_set(self, key):
"""Write key to config"""
value = request.get_data().decode('utf-8')
self.things3.set_config(key, value)
value = request.get_data().decode('utf-8').strip()
if value:
self.things3.set_config(key, value)
return Response()

def tag(self, tag, area=None):
Expand Down

0 comments on commit 97fd52b

Please sign in to comment.