Skip to content

Commit 4db4967

Browse files
committed
Fix mod_user => moduser
1 parent 96e57ac commit 4db4967

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bestof.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@ def run(user, pw, instance, postcomm, cfg, post_title, images_only, nsfw_b, modu
211211
if len(toppost) == 0:
212212
print('no active communities!')
213213
try:
214-
user = lemmy.user.get(username=f'{mod_user}@{instance}')
214+
user = lemmy.user.get(username=f'{moduser}@{instance}')
215215
except Exception as e:
216-
print(f'err looking up user {mod_user}@{instance}: {e}')
216+
print(f'err looking up user {moduser}@{instance}: {e}')
217217

218218
if user is not None:
219219
try:
220220
lemmy.private_message.create(content = f'{post_title} was not posted due to no active communities.', recipient_id=user["person_view"]["person"]["id"])
221221
except Exception as e:
222-
print(f'err sending PM to {mod_user}@{instance}: {e}')
222+
print(f'err sending PM to {moduser}@{instance}: {e}')
223223
sys.exit(0)
224224

225225
print('sorting...')

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ aiohttp
66
pytube
77
newspaper3k
88
lxml_html_clean
9+

0 commit comments

Comments
 (0)