Error with diagnostic.py

I am setting up a local nextstrain augur pipeline and on introducing a diagnostics rule similar to what is on the ncov site i get this issue

Job 7: 
   Scanning aligned sequences results/aligned.fasta for problematic sequences
Traceback (most recent call last):
  File "scripts/diagnostic.py", line 135, in <module>
    flag.write(f"{s}\t{metadata[s]['date'] if s in metadata else 'XXXX-XX-XX'}\t{metadata[s]['date_submitted'] if s in metadata else 'XXXX-XX-XX'}\t{msg}\n")
KeyError: 'date_submitted'

Not sure what the real issue is since all the dates are formatted correctly.

fixed! problem was with a metadata column.