mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-01-18 15:27:07 +00:00
Separate logging for exceptions
This commit is contained in:
parent
1525955c52
commit
60f7054fac
4
twoot.py
4
twoot.py
|
@ -451,7 +451,8 @@ def main(argv):
|
|||
)
|
||||
|
||||
except MastodonError as me:
|
||||
logging.fatal('failed to create app on ' + mast_instance + '\n' + str(me))
|
||||
logging.fatal('failed to create app on ' + mast_instance)
|
||||
logging.fatal(me)
|
||||
sys.exit(1)
|
||||
|
||||
# Log in to Mastodon instance
|
||||
|
@ -470,6 +471,7 @@ def main(argv):
|
|||
|
||||
except MastodonError as me:
|
||||
logging.fatal('ERROR: Login to ' + mast_instance + ' Failed\n')
|
||||
logging.fatal(me)
|
||||
sys.exit(1)
|
||||
|
||||
# Upload tweets
|
||||
|
|
Loading…
Reference in New Issue
Block a user