aboutsummaryrefslogtreecommitdiffstats
path: root/manage.py
diff options
context:
space:
mode:
authorGravatar wookie184 <[email protected]>2022-11-20 13:36:37 +0000
committerGravatar GitHub <[email protected]>2022-11-20 13:36:37 +0000
commit7b49952105a808b866625b4fee5a2b4edecfeb6e (patch)
treed29cb4ab470e0d23f64e6b478b2e68ba6eea94aa /manage.py
parentInclude users with no messages in response, and simplify response format (diff)
parentMerge pull request #798 from python-discord/fix-manage-py-no-args (diff)
Merge branch 'main' into messages-in-past-n-days-endpoint
Diffstat (limited to 'manage.py')
-rwxr-xr-xmanage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/manage.py b/manage.py
index 37fb141f..afca6121 100755
--- a/manage.py
+++ b/manage.py
@@ -195,7 +195,7 @@ def main() -> None:
# Pass any others directly to standard management commands
else:
- _static_build = "distill" in sys.argv[1]
+ _static_build = len(sys.argv) > 1 and "distill" in sys.argv[1]
if _static_build:
# Build a static version of the site with no databases and API support