Skip to content

Commit d0e9a6c

Browse files
authored
Update README.md
1 parent 04811f5 commit d0e9a6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ If you want to make sure that the license file is not too old, you can specify t
116116
with 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
171171
from licensing.models import *
172172
from 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

176176
if trial_key[0] == None:
177177
print("An error occurred: {0}".format(trial_key[1]))

0 commit comments

Comments
 (0)