1
0
Эх сурвалжийг харах

only warn about failed pre-evaluation if it matters

Falko Schindler 2 жил өмнө
parent
commit
30010cd6a1
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      nicegui/run.py

+ 2 - 1
nicegui/run.py

@@ -76,7 +76,8 @@ def run(self, *,
         return  # server is reloading
 
     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:
             logging.warning('The `exclude` argument will be ignored.')
         if reload: