Skip to content

Commit eb13a50

Browse files
committed
Fix bad call of cups connection getFile
1 parent f5f6700 commit eb13a50

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

troubleshoot/ErrorLogFetch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ def fetch_log (c):
6969
with NamedTemporaryFile (delete=False) as tmpf:
7070
success = False
7171
try:
72-
c.getFile ('/admin/log/error_log', tmpf.file)
72+
c.getFile ('/admin/log/error_log', file = tmpf)
7373
success = True
7474
except cups.HTTPError:
7575
try:
76-
os.remove (tmpf.file)
76+
os.remove (tmpf.name)
7777
except OSError:
7878
pass
7979

0 commit comments

Comments
 (0)