Skip to content
Permalink
Browse files

Fix code issues

  • Loading branch information
m-kuhn committed May 5, 2020
1 parent 0457875 commit f39a5b62fe8496c357d483ed608db1f2f3961e91
@@ -177,7 +177,7 @@ def test_OTBParameterChoiceExists(self):
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 @@
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 @@ def getCachedImage(self, project, request, key):
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()

0 comments on commit f39a5b6

Please sign in to comment.
You can’t perform that action at this time.