소스 검색

Error in OSError reporting

Andrej 2 달 전
부모
커밋
f3bf3bfd7c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      labkeyInterface.py

+ 1 - 1
labkeyInterface.py

@@ -11,7 +11,7 @@ class labkeyInterface:
         try:
             f=open(fname)
         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
 
         self.connectionConfig=json.load(f)