From e401785b4fde649b7208bd7029665030dad383fb Mon Sep 17 00:00:00 2001 From: Daniel Aleksandersen Date: Fri, 22 May 2015 12:31:27 +0200 Subject: [PATCH] Fixes #1742 --- nikola/plugins/command/status.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nikola/plugins/command/status.py b/nikola/plugins/command/status.py index d294172b95..ceb46cb030 100644 --- a/nikola/plugins/command/status.py +++ b/nikola/plugins/command/status.py @@ -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")