aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgsxws.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gsxws.py b/gsxws.py
index a623808..670e794 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -803,8 +803,10 @@ class Product(GsxObject):
def __init__(self, serialNumber, *args, **kwargs):
super(Product, self).__init__(*args, **kwargs)
self.serialNumber = serialNumber
- self.dt.serialNumber = serialNumber
- self.lookup = Lookup(serialNumber=self.serialNumber)
+
+ if SESSION:
+ self.dt.serialNumber = serialNumber
+ self.lookup = Lookup(serialNumber=self.serialNumber)
def get_model(self):
"""