From d0cb5f15fba1b6fd24ad40774218079e82d2ba5d Mon Sep 17 00:00:00 2001 From: Brandon Wood Date: Wed, 2 Jul 2014 12:16:15 -0400 Subject: [PATCH] Added catch for unsupported or nonexistent clipboards --- rural | 6 +++++- setup.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rural b/rural index b28c9ee..6ad75fe 100755 --- a/rural +++ b/rural @@ -12,7 +12,11 @@ from uuid import uuid4 from io import TextIOWrapper import click -from xerox import copy +try: + from xerox import copy +except ImportError: + def copy(_): + log.warning('Failed to copy public URL to clipboard, continuing anyway') from boto.s3.connection import S3Connection from boto.s3.key import Key from boto.s3.bucket import Bucket diff --git a/setup.py b/setup.py index 1e2d110..f0f15fe 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ __copyright__ = "Copyright 2014, Brandon Wood" __license__ = "BSD" -__version__ = "0.0.4" +__version__ = "0.0.5" __maintainer__ = "Brandon Wood" __email__ = "btwood+rural@geometeor.com" __status__ = "Development"