matej_suchanek added a comment.

Is it always mw.wikibase.getEntity that throws this error?

Actually, I didn't think of the other functions. I have just tested them:

console
= mw.wikibase.label( 'foo' )
nil
= mw.wikibase.sitelink( 'foo' )
nil

They just return nil (but I think they should throw errors as well).

Unfortunately I never figured out how to use mw.log and lua debbug console and I never found any documentation or examples with it. Even w:Help:Lua_debugging does not mention it.

Would you change the protection on the module, so that I could debug it? But if the error is beyond it, I might not be able to find the error.


TASK DETAIL
https://phabricator.wikimedia.org/T163815

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: matej_suchanek
Cc: matej_suchanek, Jarekt, Aklapper, QZanden, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to