Skip writing None to .env
MODIFY
plex_trakt_sync/config.py
plex_trakt_sync/config.py
@@ -59,7 +59,7 @@ def save(self):
with open(self.env_file, "w") as txt:
txt.write("# This is .env file for PlexTraktSync\n")
for key in self.env_keys:
- if key in self:
+ if key in self and self[key] is not None:
txt.write("{}={}\n".format(key, self[key]))
else:
txt.write("{}=\n".format(key))

Skip writing None to .env