Commit b840c94e authored by Eric Duminil's avatar Eric Duminil
Browse files

Pyperclip might fail on some systems

parent 17f78c88
Showing with 2 additions and 1 deletion
+2 -1
...@@ -103,7 +103,8 @@ def get_coordinates_by_zipcode(plz_patterns: list[str], precision: float = PRECI ...@@ -103,7 +103,8 @@ def get_coordinates_by_zipcode(plz_patterns: list[str], precision: float = PRECI
import pyperclip import pyperclip
pyperclip.copy(wkt_polygon) pyperclip.copy(wkt_polygon)
print("WKT Polygon copied to clipboard.") print("WKT Polygon copied to clipboard.")
except ModuleNotFoundError: except (ModuleNotFoundError, RuntimeError):
# Pyperclip is either not installed, or lacks a dependency
pass pass
print() print()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment