SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 92eceac0 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Harden `BaseAction` text formatting. Fixes SCIPOST-1D5

parent 8997734e
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class BaseAction:
timedelta = datetime.timedelta()
deadline = datetime.timedelta()
if hasattr(obj, 'date_invited'):
if hasattr(obj, 'date_invited') and obj.date_invited:
timedelta = timezone.now() - obj.date_invited
if hasattr(obj, 'submission'):
print
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment