Skip to content

Commit b44e7fe

Browse files
committed
NameError when there is no hmac
1 parent b69ff6b commit b44e7fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*.DS_Store
44
*.pypirc
55
releaseguide.md
6-
6+
venv/
7+
.idea/

Adyen/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,8 @@ def call_hpp(self, message, action, hmac_key="", **kwargs):
308308

309309
# hmac provided in function has highest priority. fallback to self then
310310
# root module and ensure that it is set.
311-
if hmac_key:
312-
hmac = hmac_key
313-
elif self.hmac:
311+
hmac = hmac_key
312+
if self.hmac:
314313
hmac = self.hmac
315314
elif not hmac:
316315
errorstring = """Please set an hmac with your Adyen.Adyen class instance.

0 commit comments

Comments
 (0)