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

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

Brown paper bag commit

This reverts commit 1fc362c3.
parent 1fc362c3
No related branches found
No related tags found
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, "w+") as f: with open(idf, "r") 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.
Finish editing this message first!
Please register or to comment