Browse Source

Error in OSError reporting

Andrej 4 months ago
parent
commit
f3bf3bfd7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      labkeyInterface.py

+ 1 - 1
labkeyInterface.py

@@ -11,7 +11,7 @@ class labkeyInterface:
         try:
         try:
             f=open(fname)
             f=open(fname)
         except OSError as e:
         except OSError as e:
-            print("Confgiuration error: OS error({0}): {1}").format(e.errno, e.strerror)
+            print("Confgiuration error: OS error({}): {}".format(e.errno, e.strerror))
             raise
             raise
 
 
         self.connectionConfig=json.load(f)
         self.connectionConfig=json.load(f)