From 2a98cec0420ad6f448f1997fa195c5a92d006112 Mon Sep 17 00:00:00 2001 From: Mahmoud-Emad Date: Sat, 14 May 2022 13:56:24 +0200 Subject: [PATCH] Fix reading issue --- pyini_parser/configure/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyini_parser/configure/parser.py b/pyini_parser/configure/parser.py index 5bbc1b9..0df28e0 100644 --- a/pyini_parser/configure/parser.py +++ b/pyini_parser/configure/parser.py @@ -66,7 +66,7 @@ def read_from_string(self, string: str) -> Dict: def read(self, filename) -> Dict: """This method reads the given file and returns a dictionary of sections and their values""" self.filename = filename - return ErrorHandler.validate_reading_file(self.filename) + return ErrorHandler.validate_reading_file(self.filename.name) def append(self, section, items): """This method appends a new key/value pair to the given section"""