replaced single quote char by single quote

This commit is contained in:
Computerboer
2024-07-13 23:42:00 +02:00
parent fd4cbc1ac8
commit 2da852c974
2 changed files with 8 additions and 7 deletions

View File

@@ -1,10 +1,10 @@
from datetime import datetime, timedelta
def log(value):
try:
print(str(datetime.now()) + ' ' + value.encode("utf-8"))
except UnicodeEncodeError:
print(str(datetime.now()) + ' print error')
print(str(datetime.now()) + ' ' + value)
# try:
# print(str(datetime.now()) + ' ' + value.encode("utf-8"))
# except:
# print(str(datetime.now()) + ' print error')
#print(u' '.join(( str(datetime.now()), value)).encode('utf-8').strip())