We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cdeed4 commit 243d1faCopy full SHA for 243d1fa
1 file changed
pgweb/news/management/commands/social_post.py
@@ -24,6 +24,10 @@ class Command(BaseCommand):
24
help = 'Post to social media'
25
26
def handle(self, *args, **options):
27
+ if not allprovidernames:
28
+ # If we have no providers, there is no posting
29
+ return
30
+
31
curs = connection.cursor()
32
curs.execute("SELECT pg_try_advisory_lock(62387372)")
33
if not curs.fetchall()[0][0]:
0 commit comments