added some print stuff
This commit is contained in:
+5
-2
@@ -145,5 +145,8 @@ cython_debug/
|
|||||||
# project-specific (secret.ini: can't ignore existing file?)
|
# project-specific (secret.ini: can't ignore existing file?)
|
||||||
secrets.ini
|
secrets.ini
|
||||||
queue.txt
|
queue.txt
|
||||||
/img.png
|
img.png
|
||||||
/src/img.png
|
src/img.png
|
||||||
|
_queue_backup.txt
|
||||||
|
_current_ttweet.txt
|
||||||
|
finished_ttweets.txt
|
||||||
+1
-1
@@ -98,7 +98,7 @@ async def process_queue() -> bool:
|
|||||||
queued_ttweets_count = queue.get_count()
|
queued_ttweets_count = queue.get_count()
|
||||||
|
|
||||||
if queued_ttweets_count == 0:
|
if queued_ttweets_count == 0:
|
||||||
print('post-able queue is empty!')
|
print('Posting queue is empty!')
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if PROGRAM_ARGS.announce_catchup:
|
if PROGRAM_ARGS.announce_catchup:
|
||||||
|
|||||||
@@ -52,5 +52,7 @@ def run():
|
|||||||
errors_encountered += 1
|
errors_encountered += 1
|
||||||
print('Ran into an error while in listen mode.')
|
print('Ran into an error while in listen mode.')
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
else:
|
||||||
|
print('API stream exited gracefully.')
|
||||||
print('Re-running listen mode...')
|
print('Re-running listen mode...')
|
||||||
print(f'(Had {errors_encountered} errors so far.)')
|
print(f'(Had {errors_encountered} errors so far.)')
|
||||||
Reference in New Issue
Block a user