Fix code issues

This commit is contained in:
Matthias Kuhn 2020-05-05 22:39:53 +02:00
parent 0457875f00
commit f39a5b62fe
3 changed files with 3 additions and 3 deletions

View File

@ -177,7 +177,7 @@ class TestOtbAlgorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):
alg_smoothing = OtbAlgorithm('Image Filtering', 'Smoothing', os.path.join(self.descrFolder, 'Smoothing.txt'))
found = False
for param in alg_smoothing.parameterDefinitions():
## print (param.name(), param.type())
# print (param.name(), param.type())
if param.type() == 'OTBParameterChoice':
found = True
break

View File

@ -66,7 +66,7 @@ print("Creating tables in the Database\n")
for table in create_tables:
try:
c.execute(table)
print table
print(table)
except sqlite3.OperationalError as e:
pass
conn.commit()

View File

@ -109,7 +109,7 @@ class PyServerCache(QgsServerCacheFilter):
with open(os.path.join(self._tile_cache_dir, m.hexdigest() + ".png"), "rb") as f:
statusOK = img.loadFromData(f.read())
if not statusOK:
print("Could not read or find the contents document. Error at line %d, column %d:\n%s" % (errorLine, errorColumn, errorStr))
print("Could not read or find the contents document.")
return QByteArray()
ba = QByteArray()