Skip to content

Commit

Permalink
fix to show webservice error message in WSAA LoginCMS
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Aug 29, 2013
1 parent d0d0341 commit 906acb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions afip_auth.py
Expand Up @@ -67,6 +67,8 @@ def authenticate(service, certificate, private_key, force=False,
wsaa.Conectar(cache, wsdl, proxy)
# call the remote method
ta = wsaa.LoginCMS(cms)
if not ta:
raise RuntimeError()
# write the access ticket for further consumption
open(fn, "w").write(ta)
else:
Expand Down

0 comments on commit 906acb8

Please sign in to comment.