From dc94de10bbb1bfe002772e41669d1096ffaa8452 Mon Sep 17 00:00:00 2001 From: Eric Froemling Date: Wed, 8 Apr 2020 13:00:45 -0700 Subject: [PATCH] Fixed vec3.length() and handlemessage error checking --- assets/src/ba_data/python/_ba.py | 2 +- assets/src/ba_data/python/ba/_actor.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/src/ba_data/python/_ba.py b/assets/src/ba_data/python/_ba.py index 71267d9e..af0616e8 100644 --- a/assets/src/ba_data/python/_ba.py +++ b/assets/src/ba_data/python/_ba.py @@ -34,7 +34,7 @@ NOTE: This file was autogenerated by gendummymodule; do not edit by hand. """ # (hash we can use to see if this file is out of date) -# SOURCES_HASH=262346642235815908245289158414705543661 +# SOURCES_HASH=19018950468850503638731149460882909299 # I'm sorry Pylint. I know this file saddens you. Be strong. # pylint: disable=useless-suppression diff --git a/assets/src/ba_data/python/ba/_actor.py b/assets/src/ba_data/python/ba/_actor.py index b0727214..d45ea744 100644 --- a/assets/src/ba_data/python/ba/_actor.py +++ b/assets/src/ba_data/python/ba/_actor.py @@ -194,7 +194,9 @@ class Actor: messages after the activity has ended, which should be explicitly avoided. """ - assert __debug__, "This should only be called in __debug__ mode." + if not __debug__: + _error.print_error('This should only be called in __debug__ mode.', + once=True) if not getattr(self, '_root_actor_init_called', False): _error.print_error('Root Actor __init__() not called.') if self.is_expired():