Skip to content

Allow users to silence warnings from getDataUrllib2

This PR modifies adds a warnings=True keyword argument to all methods in dqsegdb.apicalls that call down to dqsegdb.urifunctions.getDataUrlllib2, allowing users to silence the warnings that get printed when HTTPErrors occur. Since the exception is raised eventually anyway, having both a warning and an exception is overkill for most circumstances.

The default is warnings=True to keep the current behaviour, namely to show the warnings.

Merge request reports

Loading