Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes #1742
  • Loading branch information
da2x committed May 22, 2015
1 parent d0976cd commit e401785
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/plugins/command/status.py
Expand Up @@ -47,6 +47,8 @@ def _execute(self, command, args):

timestamp_path = os.path.join(self.site.config["CACHE_FOLDER"], "lastdeploy")

last_deploy = None

try:
with io.open(timestamp_path, "r", encoding="utf8") as inf:
last_deploy = datetime.strptime(inf.read().strip(), "%Y-%m-%dT%H:%M:%S.%f")
Expand Down

0 comments on commit e401785

Please sign in to comment.