[Bug 795346] /etc/os-release parser fails on comments or empty lines

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Apr 18 08:41:23 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795346

--- Comment #3 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Maybe something like


  try:
      ...split..
  except:
      continue

? (Not really a python person myself either, there might be a more idiomatic
solution)

Also seems like it doesn't handle there not being a VERSION_ID gracefully

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list