Thu, 23 Jun 2016 19:11:53 +0200
Fixed a bug causing a stacktrace when storing an API.
--- 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."