Skip to content

Commit

Permalink
ignore empty lines (ie: env var)
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Mar 1, 2023
1 parent 0d245ea commit 9d08bed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/server/window/content_guesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def load_content_type_defs() -> dict:
def parse_content_types(lines) -> dict:
defs = {}
for line in lines:
if not line:
continue
parts = line.rsplit("=", 1)
#ie: "title:helloworld=text #some comments here" -> "title:helloworld", "text #some comments here"
if len(parts)!=2:
Expand Down

0 comments on commit 9d08bed

Please sign in to comment.