Add Tupperbox file importing. Closes #44, #9.

This commit is contained in:
Ske 2019-02-16 16:29:44 +01:00
parent a5265b318f
commit e535e45d90
3 changed files with 101 additions and 151 deletions

View file

@ -98,3 +98,7 @@ class DuplicateSwitchMembersError(PluralKitError):
class InvalidTimeZoneError(PluralKitError):
def __init__(self, tz_name: str):
super().__init__("Invalid time zone designation \"{}\".\n\nFor a list of valid time zone designations, see the `TZ database name` column here: <https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List>.".format(tz_name))
class TupperboxImportError(PluralKitError):
def __init__(self):
super().__init__("Invalid Tupperbox file.")