From d3b3d628b290bcd33211146abf4657dbf089496d Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Mon, 29 Jun 2020 22:06:40 -0400 Subject: [PATCH] PEP conformity... --- python/damask/_environment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/damask/_environment.py b/python/damask/_environment.py index 73fe6c035..29c0f45c7 100644 --- a/python/damask/_environment.py +++ b/python/damask/_environment.py @@ -9,7 +9,7 @@ class Environment: self.screen_height = 768 try: import wx - app = wx.App(False) + _ = wx.App(False) # noqa self.screenwidth, self.screenheight = wx.GetDisplaySize() except ImportError: try: @@ -18,7 +18,7 @@ class Environment: self.screen_width = tk.winfo_screenwidth() self.screen_height = tk.winfo_screenheight() tk.destroy() - except: + except Exception as e: pass @property