Fixed vec3.length() and handlemessage error checking

This commit is contained in:
Eric Froemling 2020-04-08 13:00:45 -07:00
parent b7d9ec2015
commit dc94de10bb
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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():