Is there a way to check for an attribute of a script when using script_loader_tag?

Is there a way to check for an attribute of a script when using script_loader_tag?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)