Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jan
kresus
Commits
ef43e8b7
Commit
ef43e8b7
authored
Mar 06, 2017
by
Jan
Browse files
Improve logging of Weboob account errors somewhat.
parent
bc2506ca
Pipeline
#12186
passed with stage
in 5 minutes and 57 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
server/models/account.js
View file @
ef43e8b7
...
...
@@ -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.
...
...
server/weboob/main.py
View file @
ef43e8b7
...
...
@@ -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"
%
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment