Skip to content

Commit

Permalink
Merge pull request #14 from diggyk/master
Browse files Browse the repository at this point in the history
Minor fix based on feedback
  • Loading branch information
gmjosack committed Jun 17, 2015
2 parents 01250c4 + 33396c6 commit 2f1bba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hermes
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def print_labor(labor):
creation_time = parser.parse(labor["creationTime"])
creation_time = creation_time.replace(tzinfo=tz.tzutc())
creation_time = creation_time.astimezone(tz.tzlocal())
if "targetTime" in labor and labor["targetTime"]:
if labor.get("targetTime", None):
target_time = parser.parse(labor["targetTime"])
target_time = target_time.replace(tzinfo=tz.tzutc())
target_time = target_time.astimezone(tz.tzlocal())
Expand Down

0 comments on commit 2f1bba3

Please sign in to comment.