Skip to content

Commit b63ed21

Browse files
committed
comment out "signal" from sitecopy management command
1 parent 80b59a1 commit b63ed21

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
History
44
=======
55

6+
v1.2.1
7+
------
8+
* comment out "signal" from sitecopy management command
9+
610
v1.2.0
711
------
812
* sitecopy refactored to support sitesync

query_inspector/management/commands/sitecopy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import signal
1+
#import signal
22
import datetime
33
import time
44
import traceback
@@ -17,8 +17,8 @@ def fail(*messages):
1717
exit(-1)
1818

1919

20-
def signal_handler(signal, frame):
21-
sys.exit(0)
20+
# def signal_handler(signal, frame):
21+
# sys.exit(0)
2222

2323

2424
def get_remote_project_instance():
@@ -66,9 +66,9 @@ def get_remote_media_folder():
6666

6767
class Command(BaseCommand):
6868

69-
def __init__(self, *args, **kwargs):
70-
super().__init__(*args, **kwargs)
71-
signal.signal(signal.SIGINT, signal_handler)
69+
# def __init__(self, *args, **kwargs):
70+
# super().__init__(*args, **kwargs)
71+
# signal.signal(signal.SIGINT, signal_handler)
7272

7373
help = 'Syncs database and media files from remote project "{project}" running on remote server "{remote_server}"'.format(
7474
project=get_remote_project_instance(),

0 commit comments

Comments
 (0)