Skip to content

Commit 3372b99

Browse files
committed
Fail printers_available on unrecognized sys.platform
1 parent 8b2d7e2 commit 3372b99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

slip39/gui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ def app(
11021102
# A -SAVE- target directory has been selected; use it, if possible. This is where any
11031103
# output will be written. It should usually be a removable volume, but we do not check.
11041104
# An empty path implies the current directory.
1105-
filepath = None
1105+
filepath,printer = None,None
11061106
if event == '-SAVE-':
11071107
filepath = values['-SAVE-']
11081108
log.info( f"Saving to {filepath!r}..." )

slip39/layout/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ def printers_available():
934934
command = [ '/usr/bin/lpstat', '-lt' ]
935935
command_input = None
936936
else:
937-
return
937+
raise NotImplementedError( f"Printing not supported on platform {sys.platform}" )
938938

939939
subproc = subprocess.run(
940940
command,

0 commit comments

Comments
 (0)