File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ If you want to make sure that the license file is not too old, you can specify t
116116with open (' licensefile.skm' , ' r' ) as f:
117117 license_key = LicenseKey.load_from_string(pubKey, f.read(), 30 )
118118
119- if license_key == None or not Helpers.IsOnRightMachine(license_key):
119+ if license_key == None or not Helpers.IsOnRightMachine(license_key, v = 2 ):
120120 print (" NOTE: This license file does not belong to this machine." )
121121 else :
122122 print (" Feature 1: " + str (license_key.f1))
@@ -171,7 +171,7 @@ The code below shows how to create trial key. If the trial key is successful, `t
171171from licensing.models import *
172172from licensing.methods import Key, Helpers
173173
174- trial_key = Key.create_trial_key(" WyIzODQ0IiwiempTRWs4SnBKTTArYUh3WkwyZ0VwQkVyeTlUVkRWK2ZTOS8wcTBmaCJd" , 3941 , Helpers.GetMachineCode())
174+ trial_key = Key.create_trial_key(" WyIzODQ0IiwiempTRWs4SnBKTTArYUh3WkwyZ0VwQkVyeTlUVkRWK2ZTOS8wcTBmaCJd" , 3941 , Helpers.GetMachineCode(v = 2 ))
175175
176176if trial_key[0 ] == None :
177177 print (" An error occurred: {0} " .format(trial_key[1 ]))
You can’t perform that action at this time.
0 commit comments