Spaces:
Sleeping
Sleeping
Commit ·
47438e4
1
Parent(s): cc75d6e
Fix server import fallback for Spaces runtime
Browse files- server/app.py +1 -1
server/app.py
CHANGED
|
@@ -38,7 +38,7 @@ except Exception as e: # pragma: no cover
|
|
| 38 |
try:
|
| 39 |
from ..models import ContainerYardAction, ContainerYardObservation
|
| 40 |
from .Container_Yard_environment import ContainerYardEnvironment
|
| 41 |
-
except ModuleNotFoundError:
|
| 42 |
from models import ContainerYardAction, ContainerYardObservation
|
| 43 |
from server.Container_Yard_environment import ContainerYardEnvironment
|
| 44 |
|
|
|
|
| 38 |
try:
|
| 39 |
from ..models import ContainerYardAction, ContainerYardObservation
|
| 40 |
from .Container_Yard_environment import ContainerYardEnvironment
|
| 41 |
+
except (ModuleNotFoundError, ImportError):
|
| 42 |
from models import ContainerYardAction, ContainerYardObservation
|
| 43 |
from server.Container_Yard_environment import ContainerYardEnvironment
|
| 44 |
|