flake warnings (#304)

This commit is contained in:
Bruno Cabral
2022-12-12 02:44:27 -08:00
committed by GitHub
parent f10a3f1d1a
commit fb4109bd77
67 changed files with 252 additions and 248 deletions

View File

@@ -28,7 +28,7 @@ def main(tray: bool = False):
try:
locale.setlocale(locale.LC_NUMERIC, '')
except:
except Exception:
logger.error("Could not set locale 'LC_NUMBERIC' to '' to display localized numbers")
traceback.print_exc()
@@ -45,7 +45,7 @@ def main(tray: bool = False):
scale_factor = float(app_config['ui']['scale_factor'])
os.environ['QT_SCALE_FACTOR'] = str(scale_factor)
logger.info("Scale factor set to {}".format(scale_factor))
except:
except Exception:
traceback.print_exc()
if bool(app_config['ui']['hdpi']):