From 2388f800dc343f99805ec9dbe7301f737745dec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 23 Aug 2016 14:40:41 +0200 Subject: [PATCH] Fix T49080: Blender Cloud add-on error uploading screenshot The screenshot filename contained colons, which isn't allowed on Windows. --- blender_cloud/image_sharing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blender_cloud/image_sharing.py b/blender_cloud/image_sharing.py index 9a760d9..8eb2422 100644 --- a/blender_cloud/image_sharing.py +++ b/blender_cloud/image_sharing.py @@ -287,7 +287,7 @@ class PILLAR_OT_image_share(pillar.PillarOperatorMixin, async def upload_screenshot(self, context) -> pillarsdk.Node: """Takes a screenshot, saves it to a temp file, and uploads it.""" - self.name = datetime.datetime.now().strftime('Screenshot-%Y-%m-%d-%H:%M:%S.png') + self.name = datetime.datetime.now().strftime('Screenshot-%Y-%m-%d-%H%M%S.png') self.report({'INFO'}, "Uploading %s '%s'" % (self.target.lower(), self.name)) with tempfile.TemporaryDirectory() as tmpdir: