Reduce spam when no Spotify instance is running
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a2b90ee0b4
commit
3583001acf
1 changed files with 5 additions and 2 deletions
|
@ -57,8 +57,11 @@ class Spotify(Block):
|
|||
|
||||
|
||||
def main():
|
||||
block = Spotify(ICON)
|
||||
block.render()
|
||||
try:
|
||||
block = Spotify(ICON)
|
||||
block.render()
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue