/offlineimap/head: changeset 193
Normalize exception message to 80 characters and fix account name interpolation.
This commit is contained in:
parent
413b5aac0b
commit
2b2fbf450b
@ -95,7 +95,8 @@ else:
|
|||||||
|
|
||||||
for account in accounts:
|
for account in accounts:
|
||||||
if '.' in account:
|
if '.' in account:
|
||||||
raise ValueError, "Account '%s' contains a dot; dots are not allowed in account names."
|
raise ValueError, "Account '%s' contains a dot; dots are not " \
|
||||||
|
"allowed in account names." % account
|
||||||
if config.has_option(account, "preauthtunnel"):
|
if config.has_option(account, "preauthtunnel"):
|
||||||
tunnels[account] = config.get(account, "preauthtunnel")
|
tunnels[account] = config.get(account, "preauthtunnel")
|
||||||
elif config.has_option(account, "remotepass"):
|
elif config.has_option(account, "remotepass"):
|
||||||
|
Loading…
Reference in New Issue
Block a user