Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eric Duminil
Get Baden-Württemberg CityGML Opendata
Commits
b840c94e
Commit
b840c94e
authored
3 months ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Pyperclip might fail on some systems
parent
17f78c88
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
get_coordinates_by_zipcode.py
+2
-1
get_coordinates_by_zipcode.py
with
2 additions
and
1 deletion
+2
-1
get_coordinates_by_zipcode.py
+
2
-
1
View file @
b840c94e
...
...
@@ -103,7 +103,8 @@ def get_coordinates_by_zipcode(plz_patterns: list[str], precision: float = PRECI
import
pyperclip
pyperclip
.
copy
(
wkt_polygon
)
print
(
"WKT Polygon copied to clipboard."
)
except
ModuleNotFoundError
:
except
(
ModuleNotFoundError
,
RuntimeError
):
# Pyperclip is either not installed, or lacks a dependency
pass
print
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets