Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix boto3 RecursionError #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'seahub.settings' # set env for repo monitor cache
from gevent import monkey; monkey.patch_all()

import logging
import argparse

Expand Down Expand Up @@ -32,7 +35,6 @@ def main(background_tasks_only=False):

os.environ['EVENTS_CONFIG_FILE'] = os.path.expanduser(args.config_file)
seafile_conf_path = os.path.join(seafile_conf_dir, 'seafile.conf')
os.environ['DJANGO_SETTINGS_MODULE'] = 'seahub.settings' # set env for repo monitor cache

seafile_config = get_config(seafile_conf_path)
config = get_config(args.config_file)
Expand Down Expand Up @@ -63,8 +65,6 @@ def main(background_tasks_only=False):
foreground_tasks_enabled = True
background_tasks_enabled = False

from gevent import monkey; monkey.patch_all()

app = App(config, seafile_config, foreground_tasks_enabled=foreground_tasks_enabled,
background_tasks_enabled=background_tasks_enabled)

Expand Down
Loading