Skip to content

Commit e950d74

Browse files
Load cmd options correctly. (#299)
1 parent 5b67463 commit e950d74

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ def get(self):
2929

3030

3131
if __name__ == "__main__":
32-
from tornado.options import options
33-
3432
logger = logging.getLogger("routine")
35-
33+
options.parse_command_line()
3634
if not options.debug and options.prod:
3735
crontab("0 0 * * *", func=run_routine, start=True)
3836
logger.info("Crontab configured successfully.")

0 commit comments

Comments
 (0)