Fixed a bug causing a stacktrace when storing an API. release-3.1.1

Thu, 23 Jun 2016 19:11:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 23 Jun 2016 19:11:53 +0200
changeset 123
a4793081090c
parent 122
d746710bfe2e
child 124
ecc5e63ea5a8

Fixed a bug causing a stacktrace when storing an API.

AssistantEric/APIsManager.py file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PluginAssistantEric.py file | annotate | diff | comparison | revisions
PluginAssistantEric.zip file | annotate | diff | comparison | revisions
--- a/AssistantEric/APIsManager.py	Fri Jan 01 12:18:51 2016 +0100
+++ b/AssistantEric/APIsManager.py	Thu Jun 23 19:11:53 2016 +0200
@@ -293,11 +293,14 @@
             # step 1: create entry in file table and get the ID
             query.prepare(self.populate_file_stmt)
             query.bindValue(":file", apiFile)
-            query.exec_()
+            if not query.exec_():
+                return
             query.prepare(self.file_id_stmt)
             query.bindValue(":file", apiFile)
-            query.exec_()
-            query.next()
+            if not query.exec_():
+                return
+            if not query.next():
+                return
             id = int(query.value(0))
             
             # step 2: delete all entries belonging to this file
--- a/ChangeLog	Fri Jan 01 12:18:51 2016 +0100
+++ b/ChangeLog	Thu Jun 23 19:11:53 2016 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 3.1.1:
+- bug fixes
+
 Version 3.1.0:
 - adapted to the extended Editor API as of eric 6.1.0
 - bug fixes
--- a/PluginAssistantEric.py	Fri Jan 01 12:18:51 2016 +0100
+++ b/PluginAssistantEric.py	Thu Jun 23 19:11:53 2016 +0200
@@ -24,7 +24,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "3.1.0"
+version = "3.1.1"
 className = "AssistantEricPlugin"
 packageName = "AssistantEric"
 shortDescription = "Alternative autocompletion and calltips provider."
Binary file PluginAssistantEric.zip has changed

eric ide

mercurial