Skip to content

Commit

Permalink
fix: Correctly wrap function
Browse files Browse the repository at this point in the history
Without this function signature is not passed along and causes frappe's
introspection magic to fail
  • Loading branch information
ankush committed Oct 24, 2023
1 parent 3acebaa commit b1dc35c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ecommerce_integrations/shopify/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import base64
import functools
import hashlib
import hmac
import json
Expand All @@ -21,6 +22,7 @@
def temp_shopify_session(func):
"""Any function that needs to access shopify api needs this decorator. The decorator starts a temp session that's destroyed when function returns."""

@functools.wraps(func)
def wrapper(*args, **kwargs):

# no auth in testing
Expand Down

0 comments on commit b1dc35c

Please sign in to comment.