Skip to content
Snippets Groups Projects
Commit 99c64a83 authored by inso's avatar inso
Browse files

Do not display a membership error when the account expired

parent 2f63bba7
No related branches found
No related tags found
No related merge requests found
...@@ -83,12 +83,13 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget): ...@@ -83,12 +83,13 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget):
if will_expire_soon: if will_expire_soon:
days = QDateTime().currentDateTime().daysTo(QDateTime.fromTime_t(expiration_date)) days = QDateTime().currentDateTime().daysTo(QDateTime.fromTime_t(expiration_date))
QMessageBox.warning( if days > 0:
self, QMessageBox.warning(
"Membership expiration", self,
"Warning : Membership expiration in {0} days".format(days), "Membership expiration",
QMessageBox.Ok "Warning : Membership expiration in {0} days".format(days),
) QMessageBox.Ok
)
except MembershipNotFoundError as e: except MembershipNotFoundError as e:
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment