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):
if will_expire_soon:
days = QDateTime().currentDateTime().daysTo(QDateTime.fromTime_t(expiration_date))
QMessageBox.warning(
self,
"Membership expiration",
"Warning : Membership expiration in {0} days".format(days),
QMessageBox.Ok
)
if days > 0:
QMessageBox.warning(
self,
"Membership expiration",
"Warning : Membership expiration in {0} days".format(days),
QMessageBox.Ok
)
except MembershipNotFoundError as e:
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