debug and working stage--squash
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user