Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Handle "attributeError" exception in "sibl_gui.ui.common.getFormatted…

…ShotDate" definition.

Closes #246.
  • Loading branch information...
commit d93027a487b3769e0e2bd736fe243807c548202e 1 parent a16a383
@KelSolaar authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 sibl_gui/ui/common.py
View
4 sibl_gui/ui/common.py
@@ -381,9 +381,9 @@ def getFormattedShotDate(date, time):
LOGGER.debug("> Formatting shot date with '{0}' date and '{1}' time.".format(date, time))
- if not Constants.nullObject in (time, date):
+ if not None in (date, time) and not Constants.nullObject in (date, time):
shotTime = "{0}H{1}".format(*foundations.common.unpackDefault(time.split(":"), 2, "?"))
- shotDate = date.replace(":", "/")[2:] + " - " + shotTime
+ shotDate = "{0} - {1}".format(date.replace(":", "/")[2:], shotTime)
LOGGER.debug("> Formatted shot date: '{0}'.".format(shotDate))
return shotDate
Please sign in to comment.
Something went wrong with that request. Please try again.