Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thanks, this is much better. I did end up getting the other method to work by converting it to a string; if str(type(self.cLayer).__name__) == "QgsVectorLayer"