Fixed an issue causing an exception if QtSql cannot be imported. release-2.3.1

Tue, 12 Jun 2012 19:07:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 12 Jun 2012 19:07:19 +0200
changeset 59
2b361d34d241
parent 58
0283a7b6f342
child 60
9d7da7dc2585

Fixed an issue causing an exception if QtSql cannot be imported.

AssistantEric/APIsManager.py file | annotate | diff | comparison | revisions
PluginAssistantEric.py file | annotate | diff | comparison | revisions
PluginAssistantEric.zip file | annotate | diff | comparison | revisions
--- a/AssistantEric/APIsManager.py	Sat May 19 18:34:11 2012 +0200
+++ b/AssistantEric/APIsManager.py	Tue Jun 12 19:07:19 2012 +0200
@@ -11,7 +11,11 @@
 
 from PyQt4.QtCore import QTimer, QThread, QFileInfo, pyqtSignal, QCoreApplication, \
      QEvent, QDateTime, QObject, Qt
-from PyQt4.QtSql import QSqlDatabase, QSqlQuery
+try:
+    from PyQt4.QtSql import QSqlDatabase, QSqlQuery
+except ImportError:
+    # just ignore it because the main plug-in file will deal with it
+    pass
 
 from E5Gui.E5Application import e5App
 
--- a/PluginAssistantEric.py	Sat May 19 18:34:11 2012 +0200
+++ b/PluginAssistantEric.py	Tue Jun 12 19:07:19 2012 +0200
@@ -23,7 +23,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.3.0"
+version = "2.3.1"
 className = "AssistantEricPlugin"
 packageName = "AssistantEric"
 shortDescription = "Alternative autocompletion and calltips provider."
Binary file PluginAssistantEric.zip has changed

eric ide

mercurial