The sys and argparse module are never used in any of the useful functions of fedora_active_user. They are only used if running it as a script. But there's a bunch of interesting stuff which could make fedora_active_user attractive as a module to import. Only importing sys and argparse where they are actually used avoids forcing them on people using fedora_active_user as a module.
This should help fixing issues.
Without this, the bugzilla activity ('X bugs assigned...') is printed directly after the mailing list activity. This is very confusing when there actually was no mailing-list activity, all you get is: Last email on mailing list: XX bugs assigned, cc or on which email@example.com commented With this change, it looks clearer: Last email on mailing list: Bugzilla activity: XX bugs assigned, cc or on which firstname.lastname@example.org commented
…l to the main function - FAS provides a last_seen information which gets updated every time someone logs in into an web-app of the project (wiki or TG app). This therefore gives us a nice indication on how active the user is. However one need to be logged in to access it, credential will therefore be asked. - Fix layout, we have three spaces for the output - Add a try/catch around the call to the main function, although this doesn't seem to be so efficient...
…e for a while