handle config key not set

This commit is contained in:
Jakob Ketterl 2021-02-18 15:27:05 +01:00
parent 9492bbebbb
commit 06d4b24b09
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ from owrx.form.converter import Converter
class ReceiverKeysConverter(Converter):
def convert_to_form(self, value):
return "\n".join(value)
return "" if value is None else "\n".join(value)
def convert_from_form(self, value):
# \r\n or \n? this should work with both.