Skip to content

Commit

Permalink
Fix #381
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Feb 23, 2016
1 parent 43dbe83 commit acfa745
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/sakia/gui/member.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .widgets.busy import Busy
from ..tools.decorators import asyncify
from ..gen_resources.member_uic import Ui_MemberView
from ..tools.exceptions import MembershipNotFoundError
from ..tools.exceptions import MembershipNotFoundError, LookupFailureError


class MemberDialog(QObject):
Expand Down Expand Up @@ -65,13 +65,15 @@ async def refresh(self):
else:
join_date = datetime.datetime.fromtimestamp(join_date).strftime("%d/%m/%Y %I:%M")


identity_selfcert = await self.identity.selfcert(self.community)
uid_publish_date = QLocale.toString(
QLocale(),
QDateTime.fromTime_t(identity_selfcert.timestamp),
QLocale.dateTimeFormat(QLocale(), QLocale.ShortFormat)
)
try:
identity_selfcert = await self.identity.selfcert(self.community)
uid_publish_date = QLocale.toString(
QLocale(),
QDateTime.fromTime_t(identity_selfcert.timestamp),
QLocale.dateTimeFormat(QLocale(), QLocale.ShortFormat)
)
except LookupFailureError:
uid_publish_date = " ##/##/## "

text = self.tr("""
<table cellpadding="5">
Expand Down

0 comments on commit acfa745

Please sign in to comment.