Просмотр исходного кода

App.log changed to self.log. Caused reference error in unit tests.

Juan Pablo Caram 10 лет назад
Родитель
Сommit
5e4016a2f9
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      FlatCAMApp.py

+ 3 - 2
FlatCAMApp.py

@@ -91,7 +91,7 @@ class App(QtCore.QObject):
 
 
     def __init__(self, user_defaults=True, post_gui=None):
     def __init__(self, user_defaults=True, post_gui=None):
         """
         """
-        Starts the application. Takes no parameters.
+        Starts the application.
 
 
         :return: app
         :return: app
         :rtype: App
         :rtype: App
@@ -2918,7 +2918,8 @@ class App(QtCore.QObject):
         try:
         try:
             f = urllib.urlopen(full_url)
             f = urllib.urlopen(full_url)
         except:
         except:
-            App.log.warning("Failed checking for latest version. Could not connect.")
+            # App.log.warning("Failed checking for latest version. Could not connect.")
+            self.log.warning("Failed checking for latest version. Could not connect.")
             self.inform.emit("[warning] Failed checking for latest version. Could not connect.")
             self.inform.emit("[warning] Failed checking for latest version. Could not connect.")
             return
             return