mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -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'))
|
alg_smoothing = OtbAlgorithm('Image Filtering', 'Smoothing', os.path.join(self.descrFolder, 'Smoothing.txt'))
|
||||||
found = False
|
found = False
|
||||||
for param in alg_smoothing.parameterDefinitions():
|
for param in alg_smoothing.parameterDefinitions():
|
||||||
## print (param.name(), param.type())
|
# print (param.name(), param.type())
|
||||||
if param.type() == 'OTBParameterChoice':
|
if param.type() == 'OTBParameterChoice':
|
||||||
found = True
|
found = True
|
||||||
break
|
break
|
||||||
|
@ -66,7 +66,7 @@ print("Creating tables in the Database\n")
|
|||||||
for table in create_tables:
|
for table in create_tables:
|
||||||
try:
|
try:
|
||||||
c.execute(table)
|
c.execute(table)
|
||||||
print table
|
print(table)
|
||||||
except sqlite3.OperationalError as e:
|
except sqlite3.OperationalError as e:
|
||||||
pass
|
pass
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
@ -109,7 +109,7 @@ class PyServerCache(QgsServerCacheFilter):
|
|||||||
with open(os.path.join(self._tile_cache_dir, m.hexdigest() + ".png"), "rb") as f:
|
with open(os.path.join(self._tile_cache_dir, m.hexdigest() + ".png"), "rb") as f:
|
||||||
statusOK = img.loadFromData(f.read())
|
statusOK = img.loadFromData(f.read())
|
||||||
if not statusOK:
|
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()
|
return QByteArray()
|
||||||
|
|
||||||
ba = QByteArray()
|
ba = QByteArray()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user