Hi guys, <br><br>I&#39;m  creating a lot of QgsVectorLayer within a loop using a custom query <br>(postgres provider).<br>So, if some of the layers I create contain no rows, I see a message box <br>because the provider cannot retrieve the srid and geometry type. <br>

This is a problem within a loop, because these message boxes stop the <br>execution until users press the OK button.<br><br>I think would be a good thing to have a quiet mode and a function to <br>retrieve the error message. <br>

We already have vl.isValid() to test if it&#39;s all ok!<br><br>What&#39;s your opinion about it?<br><br>Cheers.<br clear="all"><br>-- <br>Giuseppe Sucameli<br>