fsb: Added support for OUTSTANDING_TRANSACTION bankid status.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 13 Nov 2020 20:42:03 +0000 (21:42 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 13 Nov 2020 20:42:03 +0000 (21:42 +0100)
fulbank/fsb.py

index c7af807..44a4849 100644 (file)
@@ -257,6 +257,8 @@ class session(object):
                 return
             elif st == "CANCELLED":
                 raise autherror("authentication cancelled")
+            elif st == "OUTSTANDING_TRANSACTION":
+                raise autherror("another bankid transaction already in progress")
             else:
                 raise fmterror("unexpected bankid status: " + str(st))
             time.sleep(3)