Skip to content

Commit

Permalink
gtk: Fix fatal error in steamgifts module
Browse files Browse the repository at this point in the history
  • Loading branch information
Lara Maia committed Oct 19, 2018
1 parent 17e0185 commit 5095abf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gtk/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,9 @@ def error(message: str) -> None:

def info(message: str, giveaway_: Optional[Any] = None) -> None:
assert isinstance(self.window, Gtk.Window), "No window"
assert isinstance(giveaway_, steamgifts.GiveawayInfo)

if giveaway_:
assert isinstance(giveaway_, steamgifts.GiveawayInfo), "Steamgifts giveaway has wrong type"
self.window.steamgifts_status.set_current(giveaway_.id)
self.window.steamgifts_status.set_info('{} {} ({}:{}:{})'.format(
message,
Expand Down

0 comments on commit 5095abf

Please sign in to comment.