Skip to content

Commit

Permalink
Fix reading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-Emad committed May 14, 2022
1 parent f21e0c9 commit 2a98cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyini_parser/configure/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 2a98cec

Please sign in to comment.