mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
fixed "import seafevets" when events disabled
This commit is contained in:
3
views.py
3
views.py
@@ -76,11 +76,10 @@ from settings import FILE_PREVIEW_MAX_SIZE, INIT_PASSWD
|
||||
|
||||
try:
|
||||
from settings import EVENTS_CONFIG_FILE
|
||||
from utils import get_seafevents_session
|
||||
import seafevents
|
||||
except ImportError:
|
||||
EVENTS_CONFIG_FILE = None
|
||||
else:
|
||||
from utils import get_seafevents_session
|
||||
|
||||
@login_required
|
||||
def root(request):
|
||||
|
Reference in New Issue
Block a user