Skip to content

Commit

Permalink
Style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Sep 7, 2024
1 parent be12800 commit dc3a782
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def main():
try:
key, val = arg.split('=', maxsplit=1)
global_defaults[key] = val
except:
except Exception:
pass
if global_defaults:
qta.set_global_defaults(**global_defaults)
Expand Down
6 changes: 3 additions & 3 deletions qtawesome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
from qtpy import QtCore, QtWidgets, QtGui

# Local imports
from ._version import __version__, version_info
from .animation import Pulse, Spin
from ._version import __version__ as __version__, version_info as version_info
from .animation import Pulse as Pulse, Spin as Spin
from .iconic_font import IconicFont, set_global_defaults, FontError
from .iconic_font import SYSTEM_FONTS as _SYSTEM_FONTS
from .styles import dark, light
from .styles import dark as dark, light as light

# Constants
_resource = { 'iconic': None }
Expand Down
2 changes: 1 addition & 1 deletion setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def rename_font(font_path, font_name):
# write changes to the font file
try:
tt.save(font_path, reorderTables=False)
except:
except Exception:
raise RuntimeError(
f"ERROR: unable to write new name to OpenType tables for: {font_path}")

Expand Down

0 comments on commit dc3a782

Please sign in to comment.