The W Hotel couldn't possibly have known "Pretty Little Liars" director Norman Buckley's husband would kill himself when it denied Buckley access to his room ... according to new legal docs.
The W says Buckley put its Hollywood hotel staff in a damned if you do, damned if you don't dilemma. Buckley wanted to deliver meds for PTSD and paranoia to his husband, Davyd Whaley. The hotel says letting him in would have violated Whaley's explicit request for privacy.
According to docs, the hotel says it had no malicious intent when it denied Buckley.
TMZ broke the story ... Buckley sued the W for wrongful death, alleging the hotel blocking him stopped him from rescuing his husband from suicide.
The hotel is asking the judge to dismiss the lawsuit.