Separate logging for exceptions

This commit is contained in:
jeancf 2020-12-18 22:16:27 +01:00
parent 1525955c52
commit 60f7054fac

View File

@ -451,7 +451,8 @@ def main(argv):
) )
except MastodonError as me: 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) sys.exit(1)
# Log in to Mastodon instance # Log in to Mastodon instance
@ -470,6 +471,7 @@ def main(argv):
except MastodonError as me: except MastodonError as me:
logging.fatal('ERROR: Login to ' + mast_instance + ' Failed\n') logging.fatal('ERROR: Login to ' + mast_instance + ' Failed\n')
logging.fatal(me)
sys.exit(1) sys.exit(1)
# Upload tweets # Upload tweets