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
Branches
Tags
No related merge requests found
...@@ -448,7 +448,7 @@ class Client(object): ...@@ -448,7 +448,7 @@ class Client(object):
if not idf: if not idf:
return None return None
try: try:
with open(idf, "r") as f: with open(idf, "w+") as f:
id = int(f.read()) id = int(f.read())
except (ValueError, IOError) as e: except (ValueError, IOError) as e:
Error(message="Reading id file \"%s\" failed, relying on server" % idf, 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.
Please register or to comment