From 5894e46f03f0345e93c7334b9aa698b76db0b5ce Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Wed, 14 May 2014 23:36:28 +0300 Subject: [PATCH] Check if ICON is None --- youtube_dl_gui/YoutubeDLGUI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl_gui/YoutubeDLGUI.py b/youtube_dl_gui/YoutubeDLGUI.py index 2d0734f..10dc965 100644 --- a/youtube_dl_gui/YoutubeDLGUI.py +++ b/youtube_dl_gui/YoutubeDLGUI.py @@ -81,7 +81,8 @@ class MainFrame(wx.Frame): self.init_gui() # set app icon - self.SetIcon(wx.Icon(ICON, wx.BITMAP_TYPE_PNG)) + if ICON is not None: + self.SetIcon(wx.Icon(ICON, wx.BITMAP_TYPE_PNG)) # set publisher for update thread Publisher.subscribe(self.update_handler, "update")