diff options
-rw-r--r-- | pa.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -41,9 +41,12 @@ class SinkInput: self._i = pitem def name(self): - name = self._i.ch["properties"].ch["media.name"].value - if "application.process.binary" in self._i.ch["properties"].ch: - name += " (" + self._i.ch["properties"].ch["application.process.binary"].value + ")" + try: + name = self._i.ch["properties"].ch["media.name"].value + if "application.process.binary" in self._i.ch["properties"].ch: + name += " (" + self._i.ch["properties"].ch["application.process.binary"].value + ")" + except Exception as e: + return "???" return name def default(self): |