Kaynağa Gözat

only warn about failed pre-evaluation if it matters

Falko Schindler 2 yıl önce
ebeveyn
işleme
30010cd6a1
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      nicegui/run.py

+ 2 - 1
nicegui/run.py

@@ -76,7 +76,8 @@ def run(self, *,
         return  # server is reloading
         return  # server is reloading
 
 
     if not globals.pre_evaluation_succeeded:
     if not globals.pre_evaluation_succeeded:
-        logging.warning('Failed to pre-evaluate ui.run().')
+        if exclude or reload:
+            logging.warning('Failed to pre-evaluate ui.run().')
         if exclude:
         if exclude:
             logging.warning('The `exclude` argument will be ignored.')
             logging.warning('The `exclude` argument will be ignored.')
         if reload:
         if reload: