Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guinness
wantzel
Commits
b62e04e8
Commit
b62e04e8
authored
Jun 23, 2015
by
Mindiell
Browse files
Moved encoding in debug
parent
745b3174
Changes
1
Hide whitespace changes
Inline
Side-by-side
wantzel.py
View file @
b62e04e8
...
...
@@ -39,7 +39,7 @@ class Utils(object):
@
classmethod
def
log
(
cls
,
message
):
with
open
(
LOG_FILE
,
'a'
)
as
f
:
f
.
write
(
"%s: %s
\n
"
%
(
time
.
strftime
(
"%Y-%m-%d %H:%M:%S"
,
time
.
localtime
()),
message
))
f
.
write
(
"%s: %s
\n
"
%
(
time
.
strftime
(
"%Y-%m-%d %H:%M:%S"
,
time
.
localtime
()),
message
.
encode
(
"utf-8"
)
))
@
classmethod
def
debug
(
cls
,
message
):
...
...
@@ -500,7 +500,7 @@ class Wantzel(object):
entry
.
link
.
encode
(
"utf-8"
)
))
Utils
.
debug
(
entry
.
published_parsed
)
Utils
.
debug
(
entry
.
title
.
encode
(
"utf-8"
)
)
Utils
.
debug
(
entry
.
title
)
# Save last_entry_published
self
.
last_entry_published
=
entry
.
published_parsed
last_entry_published
=
time
.
strftime
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment