Commit 5e247612 authored by Jan's avatar Jan Committed by Benjamin Bouvier
Browse files

Improve logging of Weboob account errors somewhat.

parent 5b053984
Pipeline #16432 passed with stage
in 2 minutes and 30 seconds
......@@ -36,7 +36,7 @@ let Account = americano.getModel('bankaccount', {
// Label describing the account provided by the source.
title: String,
// IBAN provided by the source (facultative).
// IBAN provided by the source (optional).
iban: String,
// Currency used by the account.
......
......@@ -154,6 +154,7 @@ class Connector(object):
op["date"] = line.date
else:
# Wow, this should never happen.
print >> sys.stderr, "No known date property in transaction line: %s" % unicode(op["raw"])
op["date"] = datetime.now()
op["date"] = op["date"].strftime(DATETIME_FORMAT)
......@@ -166,7 +167,7 @@ class Connector(object):
results.append(op)
except NotImplementedError:
print >> sys.stderr, "The account type has not been implemented by weboob."
print >> sys.stderr, "The account type has not been implemented by weboob: %s" % account.id
return results
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment