git.haldean.org bitpic / 7c6080b
clean up load loop code a little Haldean Brown 2 years ago
1 changed file(s) with 3 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
155155 print("failed to load screen: {}".format(e))
156156 return None
157157
158 def load_loop(self):
159 self.new_screen = self.load()
160 if self.new_screen is not None:
161 self.current_anim = None
162
163158 def anim_loop(self):
164159 current_anim = self.current_anim
165160 current_screen = self.current_screen
188183 def run_load_loop():
189184 while True:
190185 try:
191 self.load_loop()
186 self.new_screen = self.load()
187 if self.new_screen is not None:
188 self.current_anim = None
192189 except Exception:
193190 traceback.print_exc()
194191 time.sleep(5)