mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Make sure we are logged to get max_characters
This commit is contained in:
parent
a50a077cd3
commit
b6396f7b51
1
twoot.py
1
twoot.py
|
@ -1150,6 +1150,7 @@ def main(argv):
|
|||
mastodon = login(mast_password)
|
||||
|
||||
# Check toot character limit on mastodon instance
|
||||
if mastodon is not None:
|
||||
try:
|
||||
max_characters = mastodon.instance().configuration.statuses['max_characters']
|
||||
logging.debug('Instance character limit is '+ str(max_characters))
|
||||
|
|
Loading…
Reference in New Issue
Block a user