python3-fixes

This commit is contained in:
Achilles Rasquinha 2018-02-14 16:13:37 +05:30
parent 908af53fcd
commit b723033213
2 changed files with 4 additions and 4 deletions

View File

@ -167,9 +167,9 @@ def make_holiday(holiday_list_name):
current_fiscal_year = get_fiscal_year(nowdate(), as_dict=True)
dt = getdate(nowdate())
new_year = dt + relativedelta(month=01, day=01, year=dt.year)
republic_day = dt + relativedelta(month=01, day=26, year=dt.year)
test_holiday = dt + relativedelta(month=02, day=02, year=dt.year)
new_year = dt + relativedelta(month=1, day=1, year=dt.year)
republic_day = dt + relativedelta(month=1, day=26, year=dt.year)
test_holiday = dt + relativedelta(month=2, day=2, year=dt.year)
frappe.get_doc({
'doctype': 'Holiday List',

View File

@ -8,4 +8,4 @@ def execute():
from frappe.modules.patch_handler import executed
last_v3_patch = 'patches.1401.fix_pos_outstanding'
if not executed(last_v3_patch):
raise Exception, "site not ready to migrate to version 4"
raise Exception("site not ready to migrate to version 4")