mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Fix code issues
This commit is contained in:
parent
0457875f00
commit
f39a5b62fe
@ -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
|
||||
|
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user