Skip to content

Commit aa52e9c

Browse files
authored
Merge pull request #1225 from stonebig/master
avoid crash if menu creation problem
2 parents fb2a8eb + d3266e2 commit aa52e9c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

winpython/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
OTHER DEALINGS IN THE SOFTWARE.
2929
"""
3030

31-
__version__ = '6.1.20230514'
31+
__version__ = '6.1.20230518'
3232
__license__ = __doc__
3333
__project_url__ = 'http://winpython.github.io/'

winpython/data/packages.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,3 +3598,6 @@ description = Wrappers to call pyproject.toml-based build backend hooks.
35983598
[accelerate]
35993599
description = Accelerate
36003600
3601+
[spatialpandas]
3602+
description = Pandas extension arrays for spatial/geometric operations
3603+

winpython/utils.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,12 @@ def create_shortcut(
264264
ipf = ilink.QueryInterface(pythoncom.IID_IPersistFile)
265265
if not filename.endswith('.lnk'):
266266
filename += '.lnk'
267-
ipf.Save(filename, 0)
267+
print(f'ipf.save *{filename}*')
268+
try:
269+
ipf.Save(filename, 0)
270+
except:
271+
print ("a fail !")
272+
pass
268273

269274

270275
# =============================================================================

0 commit comments

Comments
 (0)