Skip to content
Snippets Groups Projects
Commit 1fc362c3 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Changed opening last id file - it's now automatically created even when only reading

parent 1198228b
No related branches found
No related tags found
No related merge requests found
......@@ -448,7 +448,7 @@ class Client(object):
if not idf:
return None
try:
with open(idf, "r") as f:
with open(idf, "w+") as f:
id = int(f.read())
except (ValueError, IOError) as e:
Error(message="Reading id file \"%s\" failed, relying on server" % idf,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment