Skip to content

Commit

Permalink
use logging instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
Windsooon committed Dec 26, 2023
1 parent b96553e commit 71b1776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JobTracker/chatbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_content(self, info):
date_object = datetime.strptime(info['date'], "%a, %d %b %Y %H:%M:%S %z (%Z)")
month_day_year_time = date_object.strftime("%b %d %Y %H:%M:%S")
except ValueError:
print("Unable to parse date")
logging.warn('Unable to parse date, Use default date instead')
info['state'] = json.dumps({info['state']:month_day_year_time})
info['rank'] = date_object
return ('Succeed', info)
Expand Down

0 comments on commit 71b1776

Please sign in to comment.