first commit
This commit is contained in:
21
debug_import.py
Normal file
21
debug_import.py
Normal file
@ -0,0 +1,21 @@
|
||||
import os
|
||||
|
||||
print("--- Content of /app/admin_templates.py ---")
|
||||
try:
|
||||
with open("/app/admin_templates.py", "r") as f:
|
||||
print(f.read())
|
||||
except FileNotFoundError:
|
||||
print("admin_templates.py not found in /app")
|
||||
print("-----------------------------------------")
|
||||
|
||||
print("Attempting to import oidc_server.py...")
|
||||
try:
|
||||
# This will attempt to import admin_templates implicitly
|
||||
import oidc_server
|
||||
print("Successfully imported oidc_server.py (and admin_templates.py).")
|
||||
except SyntaxError as e:
|
||||
print(f"SyntaxError during import: {e}")
|
||||
except ImportError as e:
|
||||
print(f"ImportError during import: {e}")
|
||||
except Exception as e:
|
||||
print(f"An unexpected error occurred during import: {e}")
|
||||
Reference in New Issue
Block a user