<div id="ymail_android_signature">Using PyODBC on linux with unixodbc is tricky to put it mildly, which is why the importers that uses pyodbc only is enabled on windows...</div><div id="ymail_android_signature">I can look into this issue within a few days when I get to boot into Windows, if no one else got windows installed.</div><div id="ymail_android_signature"><br></div><div id="ymail_android_signature">/Tomas</div> <br> <blockquote style="margin: 0 0 20px 0;"> <header style="font-family:Roboto, sans-serif; color:#6D00F6;"> <div>Den søn., jun. 12, 2016 kl. 5:22 skrev Ken Roberts</div><div><alisonken1@gmail.com>:</div> </header> <div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"> <div id="msgSandbox_AMe2FimIABXXnV1zXRQAXcJ023dM_TEXT" class="msgSandbox" style="padding: 1.5em 0.5em 0.5em 1.2em; word-wrap: break-word;">There's a possibility of checking if table exists, I just have a<br clear="none">problem atm with the unixODBC, PyODBC driver interface.<br clear="none"><br clear="none">One thing the mediashout import _assumes_ is that it's using an<br clear="none">MSAccess interface - which unixODBC may have a different driver name<br clear="none">than the default MSAccess driver name.<br clear="none"><br clear="none"><br clear="none">On Sat, Jun 11, 2016 at 1:00 PM, Raoul Snyman <<a shape="rect" ymailto="mailto:raoul@snyman.info" href="javascript:return">raoul@snyman.info</a>> wrote:<br clear="none">>> OK - a try:except block around the themes should do it. The problem<br clear="none">>> will be writing a test case for that issue.<br clear="none">>><br clear="none">>> Should I create a test database without the Themes table and hope that<br clear="none">>> mdbtools creates a decent dbfile?<br clear="none">><br clear="none">><br clear="none">> I ask this without having looked at the code yet - is there not some way to<br clear="none">> check if a table exists? Surely that would be a better way to do things than<br clear="none">> to just blindly catch the exception?<br clear="none">><br clear="none">> Writing a test should not be difficult. Just use a mock object to throw an<br clear="none">> exception or return False when necessary.<br clear="none">><br clear="none">><br clear="none">><br clear="none">> --<br clear="none">> Raoul Snyman<br clear="none">> e: <a shape="rect" ymailto="mailto:raoul@snyman.info" href="javascript:return">raoul@snyman.info</a><br clear="none">> _______________________________________________<br clear="none">> openlp-dev mailing list<br clear="none">> <a shape="rect" ymailto="mailto:openlp-dev@openlp.io" href="javascript:return">openlp-dev@openlp.io</a><br clear="none">> <a shape="rect" href="https://lists.openlp.io/mailman/listinfo/openlp-dev" target="_blank">https://lists.openlp.io/mailman/listinfo/openlp-dev</a><br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">- Ken<br clear="none">Registered Linux user 296561<br clear="none">Slackin' since 1993<br clear="none">Slackware Linux (<a shape="rect" href="http://www.slackware.com" target="_blank">http://www.slackware.com</a>)<div class="yQTDBase yqt2762068904" id="yqtfd04868"><br clear="none">_______________________________________________<br clear="none">openlp-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:openlp-dev@openlp.io" href="javascript:return">openlp-dev@openlp.io</a><br clear="none"><a shape="rect" href="https://lists.openlp.io/mailman/listinfo/openlp-dev" target="_blank">https://lists.openlp.io/mailman/listinfo/openlp-dev</a><br clear="none"></div></div> </div> </blockquote>