Silly but not exactly dotty (5)
I believe the answer is:
potty
This clue could be a double definition.
'silly' is the first definition.
(thesaurus)
'not exactly dotty' is the second definition.
'potty' can be an answer for 'dotty' (thesaurus). I'm not sure about the 'not exactly' bit.
'but' is the link.
Can you help me to learn more?
(Other definitions for potty that I've seen before include "Daft (informal)" , "sort of chamber?" , "Infant's loo" , "Bonkers" , "Crazy (colloq.)" .)