Skip to content

Commit

Permalink
Merge pull request #4 from warp3r/master
Browse files Browse the repository at this point in the history
More fixes for utf-8 handling
  • Loading branch information
phwitservices authored Oct 9, 2016
2 parents ad40c7f + 4fa2a86 commit e8f564a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RundeckLogfileCleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_projects():
try:
url = URL + 'projects'
r = requests.get(url, headers=HEADERS, verify=False,timeout=PROPERTIES['TIMEOUT'])
root = ET.fromstring(r.text)
root = ET.fromstring(r.text.encode('utf-8'))
for project in root:
for name in project.findall('name'):
project_names.append(name.text)
Expand Down

0 comments on commit e8f564a

Please sign in to comment.