1
=== modified file 'gwibber/microblog/util/exceptions.py'
2
--- old/gwibber/microblog/util/exceptions.py 2010-04-14 15:29:20 +0000
3
+++ new/gwibber/microblog/util/exceptions.py 2010-05-03 04:09:35 +0000
9
class GwibberError(Exception):
10
"""Base class for exceptions in gwibber."""
12
def __init__(self, type="UNKNOWN", protocol="UNKNOWN", username="UNKNOWN", message="UNKNOWN"):
14
log.logger.error("Failed to find credentials in the keyring")
15
+ accounts_error = os.path.join(xdg.BaseDirectory.xdg_cache_home, "gwibber", ".accounts_error")
16
+ if os.path.exists(accounts_error) and os.path.getmtime(accounts_error) > time.time()-600:
17
+ log.logger.info("gwibber-accounts was raised less than 600 seconds")
20
+ open(accounts_error, 'w').close()
22
log.logger.error("%s failure: %s:%s - %s", type, protocol, username, message)
24
display_message = "There was an %s failure from %s for account %s, error was %s" % (type, protocol, username, message)