debug and working stage--squash

This commit is contained in:
Adam Hopkins
2021-02-08 12:18:29 +02:00
parent c08b153cee
commit 0d5b2a0f69
24 changed files with 454 additions and 259 deletions

View File

@@ -29,6 +29,10 @@ class ExceptionMixin:
nonlocal apply
nonlocal exceptions
if isinstance(exceptions[0], list):
exceptions = tuple(*exceptions)
print(handler, exceptions)
future_exception = FutureException(handler, exceptions)
self._future_exceptions.add(future_exception)
if apply:

View File

@@ -539,6 +539,7 @@ class RouteMixin:
def _generate_name(self, *objects) -> str:
name = None
for obj in objects:
if obj:
if isinstance(obj, str):
@@ -546,9 +547,12 @@ class RouteMixin:
break
try:
name = obj.__name__
name = obj.name
except AttributeError:
continue
try:
name = obj.__name__
except AttributeError:
continue
else:
break