Skip to content

Commit

Permalink
add ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kurenkov committed Dec 31, 2016
1 parent 5886e85 commit edde678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/make_older.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
string_time = datetime.datetime.strftime(t2, "%Y-%m-%d %H:%M:%S")
except IOError:
string_time = "2017-01-01 00:00:00"
except ValueError:
string_time = "2017-01-01 00:00:00"

f = open("last_time", "w")
print string_time
Expand Down

0 comments on commit edde678

Please sign in to comment.